From 326c49f6bc4a571f46dca43ec259f70d051eaf8e Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 15 Apr 2024 20:34:06 +0200 Subject: [PATCH] feat: add screenshot keybinds --- users/buffet/sway.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/buffet/sway.nix b/users/buffet/sway.nix index b9f7467..6590e75 100644 --- a/users/buffet/sway.nix +++ b/users/buffet/sway.nix @@ -23,7 +23,6 @@ in { seat."*" = {hide_cursor = "when-typing enable";}; floating.modifier = mod; - # TODO: screenshot keybinds keybindings = let makeWorkspaceBinds = num: let ws = toString num; @@ -40,6 +39,9 @@ in { "${mod}+Shift+y" = "exec swaylock"; "${mod}+d" = "exec ${pkgs.fuzzel}/bin/fuzzel"; # TODO: config + "${mod}+p" = "exec ${pkgs.unstable.sway-contrib.grimshot}/bin/grimshot copy window"; + "${mod}+Shift+p" = "exec ${pkgs.unstable.sway-contrib.grimshot}/bin/grimshot copy output"; + "${mod}+z" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 1%-"; "${mod}+x" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +1%"; "${mod}+Shift+z" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-";