From 7269c3e5980d2bfc6c8ad3a6e8c8a027bede86a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 9 Oct 2023 09:55:40 +0200 Subject: sway: keysyms to screenshot --- config/sway/bindsym-system | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config') 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" -- cgit v1.2.3