From 38dcae1bee7c99155da0f600a302e2b8761d5fd3 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 2 Sep 2024 22:27:34 -0600 Subject: home/desktop: add grimshot shortcuts to sway --- home/desktop.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'home/desktop.nix') diff --git a/home/desktop.nix b/home/desktop.nix index ebe35de..823fe39 100644 --- a/home/desktop.nix +++ b/home/desktop.nix @@ -121,6 +121,8 @@ with lib; { wofi = config.programs.wofi.package; inherit (pkgs.local) st tmux-lift; + + grimshot = getExe pkgs.sway-contrib.grimshot; in mkOptionDefault { "${mod}+a" = "focus parent"; @@ -131,6 +133,9 @@ with lib; { "${mod}+Return" = "exec ${getExe st} -e ${getExe tmux-lift}"; "${mod}+Shift+e" = "input * xkb_layout latam"; "${mod}+Shift+u" = "input * xkb_layout us"; + "${mod}+p" = "exec ${grimshot} copy active"; + "${mod}+Shift+p" = "exec ${grimshot} copy area"; + "${mod}+Ctrl+p" = "exec ${grimshot} copy window"; }; startup = [ -- cgit v1.2.3