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 | |
parent | 550ef3a8569554e02806c72122284273a7f5d94d (diff) | |
download | myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.tar.gz myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.tar.bz2 myconfigs-7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8.zip |
sway: keysyms to screenshot
-rw-r--r-- | config/sway/bindsym-system | 11 | ||||
m--------- | private | 0 |
2 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" diff --git a/private b/private -Subproject d708dfa488157393775bbab4bcf0a183b63a52d +Subproject f4ed914611a53b8ea90827df2b9ba52c5d30e39 |