This commit is contained in:
array-in-a-matrix 2022-01-08 17:36:55 -05:00
parent a7aa42621c
commit bd2c469715
2 changed files with 20 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*histfile*
*zcompdump*

View file

@ -270,4 +270,22 @@ include "$HOME/.cache/wal/colors-sway"
output HDMI-A-1 pos 1920 0
output eDP-1 pos 0 0
# Screen capture
set $screenshot 1 selected, 2 whole, 3 selected clipboard, 4 whole clipboard, 5 swappy
mode "$screenshot" {
bindsym 1 exec 'grim -g "$(slurp)" ~/ps_$(date +"%Y%m%d%H%M%S").png', mode "default"
bindsym 2 exec 'grim ~/ps_$(date +"%Y%m%d%H%M%S").png', mode "default"
bindsym 3 exec 'grim -g "$(slurp)" - | wl-copy', mode "default"
bindsym 4 exec 'grim - | wl-copy', mode "default"
bindsym 5 exec 'grim -g "$(slurp)" - | swappy -f -', mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+Print mode "default"
}
bindsym $mod+Print mode "$screenshot"
include /etc/sway/config.d/*