From dcfc30a56109c1adcea9a518a80177e795f766fe Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 9 Nov 2024 17:52:14 +0100 Subject: [PATCH] [sway] add screen capture --- .config/sway/config | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index 6608f80..e0c5c17 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -160,6 +160,19 @@ mode "present" { } bindsym $mod+p mode "present" +#========================# +# Screen capture # +#========================# + +# save screen to ~/Pictures +bindsym Print exec grim +# save a region to ~/Pictures +bindsym Shift+Print exec grim -g "$(slurp)" +# send screen to clipboard +bindsym Ctrl+Print exec grim - | wl-copy +# send a region to clipboard +bindsym Ctrl+Shift+Print exec grim -g "$(slurp)" - | wl-copy + #=================================# # Keyboard Shortcuts (Workspaces) # #=================================#