diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-09-02 22:27:34 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-09-02 22:31:10 -0600 |
| commit | 38dcae1bee7c99155da0f600a302e2b8761d5fd3 (patch) | |
| tree | 93365d3d3d68806a19e4636284e92502dc8d8a29 /home | |
| parent | 3b3481d7b4ef3ebe6b7aece9fa820ce3a71e20f8 (diff) | |
home/desktop: add grimshot shortcuts to sway
Diffstat (limited to 'home')
| -rw-r--r-- | home/desktop.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 = [ |
