dotfiles/config/sway/config.d/screencapture

12 lines
351 B
Text

set $ps1 Print
set $ps2 Control+Print
set $ps3 Alt+Print
set $ps4 Control+Alt+Print
set $psf $(xdg-user-dir PICTURES)/ps_$(date +"%Y%m%d%H%M%S").png
bindsym $ps1 exec grim - | wl-copy
bindsym $ps2 exec grim -g "$(slurp)" - | wl-copy
bindsym $ps3 exec grim $psf
bindsym $ps4 exec grim -g "$(slurp)" $psf
#bindsym $mod+shift+s exec grimshot copy area