remove screenshot keymaps other than swappy

This commit is contained in:
2022-03-14 22:18:51 +03:00
parent 6fb00edaa3
commit 3582e51b7c

View File

@@ -17,9 +17,6 @@ set $term kitty
# Your preferred application launcher # Your preferred application launcher
set $menu kickoff set $menu kickoff
# Screenshot utility
set $shot "/usr/share/sway/scripts/grimshot"
# Workspaces # Workspaces
set $ws1 "1" set $ws1 "1"
set $ws2 "2" set $ws2 "2"
@@ -134,16 +131,6 @@ bindsym F8 exec pavucontrol
bindsym $mod+equal exec swaymsg 'gaps inner current plus 10' bindsym $mod+equal exec swaymsg 'gaps inner current plus 10'
bindsym $mod+minus exec swaymsg 'gaps inner current minus 10' bindsym $mod+minus exec swaymsg 'gaps inner current minus 10'
# Make screenshots
# Ctrl+1,2,3 - Save screenshot of screen, selected window, selected area
bindsym $ctrl+1 exec --no-startup-id $shot --notify save output "$HOME/Pictures/Screenshots/Screenshot_$(date +%s%3N).png"
bindsym $ctrl+2 exec --no-startup-id $shot --notify save window "$HOME/Pictures/Screenshots/Screenshot_$(date +%s%3N).png"
bindsym $ctrl+3 exec --no-startup-id $shot --notify save area "$HOME/Pictures/Screenshots/Screenshot_$(date +%s%3N).png"
# Ctrl+Shift+1,2,3 - Copy screenshot of screen, selected window, selected area
bindsym $ctrl+Shift+1 exec --no-startup-id $shot --notify copy output
bindsym $ctrl+Shift+2 exec --no-startup-id $shot --notify copy window
bindsym $ctrl+Shift+3 exec --no-startup-id $shot --notify copy area
# Call swappy # Call swappy
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | swappy -f - bindsym $mod+Shift+s exec grim -g "$(slurp)" - | swappy -f -