From c0c91062e3ff1e2515f01b99dbb8a5cf85a714c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Tue, 17 Dec 2024 13:42:41 +0100 Subject: [PATCH] add sway screenshot shortcuts (with grim and swappy) --- sway/.config/sway/config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 66fdcff..e0028d3 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -85,6 +85,12 @@ bindsym $mod+d exec $menu # Lock the screen bindsym $mod+Shift+s exec $lock +# Screenshot (whole screen) +bindsym $mod+p exec grim - | swappy -f - + +# Screenshot (screen region) +bindsym $mod+Shift+p exec grim -g "$(slurp)" - | swappy -f - + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows.