From 8b4c325979918fd03203f1adbbe4ea50b24c8e9d Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sat, 2 Mar 2024 14:23:02 +0300 Subject: [PATCH] Change screenshot shortcuts Signed-off-by: Ivan Bushchik --- configs/sway/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/sway/config b/configs/sway/config index f0772e6..f4357e2 100644 --- a/configs/sway/config +++ b/configs/sway/config @@ -49,8 +49,9 @@ exec swayidle -w timeout 60 '$HOME/.config/sway/lock.sh' # Screenshots set $screenshot_file \"$HOME/Pictures/screenshot-$(date '+%Y-%m-%d_%H-%M-%S').png\" -bindsym $mod+o exec grim $screenshot_file -bindsym $mod+p exec (slurp | grim -g- $screenshot_file) +bindsym Mod3+Shift+3 exec grim $screenshot_file +bindsym Mod3+Shift+4 exec (slurp | grim -g- $screenshot_file) +bindsym Mod3+Shift+5 exec (swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | "\(.rect.x+.window_rect.x),\(.rect.y+.window_rect.y) \(.window_rect.width)x\(.window_rect.height)"' | slurp | grim -g- $screenshot_file) # Recordings