From 79d42200d02d238e6ae78563fbf9512afe47b3fc Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sat, 22 Jul 2023 10:05:56 -0700 Subject: [PATCH] Configured grimshot Keyboard shortcuts for taking screenshots --- modules/desktop/sway/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/desktop/sway/default.nix b/modules/desktop/sway/default.nix index d1e4ba0..cf42ae3 100644 --- a/modules/desktop/sway/default.nix +++ b/modules/desktop/sway/default.nix @@ -55,6 +55,8 @@ in { slurp xdg-utils xdg-desktop-portal-wlr + sway-contrib.grimshot + wev ]; # For screen sharing to work @@ -274,6 +276,20 @@ in { ## Move focus to the parent container "${modifier}+a" = "focus parent"; + # Screenshots + + ## Current window + "${modifier}+period" = "exec grimshot --notify save active ~/screenshots"; + + ## Area selection + "${modifier}+Shift+period" = "exec grimshot --notify save area ~/screenshots"; + + ## Current output + "${modifier}+Alt+period" = "exec grimshot --notify save output ~/screenshots"; + + ## Window selection + "${modifier}+Ctrl+period" = "exec grimshot --notify save window ~/screenshots"; + # Scratchpad # Move the currently focused window to the scratchpad "${modifier}+Shift+minus" = "move scratchpad";