Sway : Add selection screenshot.

This commit is contained in:
Dmitry Voronin 2024-03-28 10:04:43 +03:00
parent 471d471e02
commit 30122e78d7
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ font=Terminess Nerd Font Mono:size=14
# underline-thickness=<font underline thickness>
# box-drawings-uses-font-glyphs=no
dpi-aware=yes
overflowing-glyphs=yes
# overflowing-glyphs=yes
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>

View file

@ -1,5 +1,5 @@
# Fullscreen screenshot.
bindsym $mod+shift+v grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png
bindsym $mod+shift+v exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png
# Select screenshot.
# bindsym $mod+v # TODO: Add selectable screenshot.
bindsym $mod+v exec grim -g "$(slurp -d)" - | wl-copy