added
This commit is contained in:
parent
a7aa42621c
commit
bd2c469715
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*histfile*
|
||||
*zcompdump*
|
|
@ -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/*
|
||||
|
|
Loading…
Reference in a new issue