diff options
author | Karel Kočí <cynerd@email.cz> | 2023-10-09 09:55:40 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-10-09 09:55:40 +0200 |
commit | 7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8 (patch) | |
tree | 39efc36993dc923c90a3f1262f80486e918386b2 /config/sway/bindsym-system | |
parent | 550ef3a8569554e02806c72122284273a7f5d94d (diff) | |
download | myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.tar.gz myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.tar.bz2 myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.zip |
sway: keysyms to screenshot
Diffstat (limited to 'config/sway/bindsym-system')
-rw-r--r-- | config/sway/bindsym-system | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/sway/bindsym-system b/config/sway/bindsym-system index 96c8c0a..7afcb4c 100644 --- a/config/sway/bindsym-system +++ b/config/sway/bindsym-system @@ -11,3 +11,14 @@ mode "$mode_system" { bindsym Escape mode "default" } bindsym $mod+Shift+q mode "$mode_system" + + +set $screenshot Screenshot: (s)elect or (d)desktop +mode "$screenshot" { + bindsym --release d exec --no-startup-id grim, mode "default" + bindsym --release s exec --no-startup-id sh -c "slurp | grim -g -", mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+s mode "$screenshot" |