From fbd73fcf779d16c5876aeb247abece4738387cda Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 16 Jul 2024 12:32:40 +0530 Subject: home/wayland/sway: bind freezshot to print --- home/wayland/modules/sway/home.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/wayland/modules/sway/home.nix b/home/wayland/modules/sway/home.nix index 5f4cfb5..b1d5465 100644 --- a/home/wayland/modules/sway/home.nix +++ b/home/wayland/modules/sway/home.nix @@ -17,6 +17,7 @@ nnn = lib.getExe pkgs.nnn; wpctl = "${pkgs.wireplumber}/bin/wpctl"; brightnessctl = lib.getExe pkgs.brightnessctl; + freezshot = "${wayland-scripts}/bin/freezshot"; mako = lib.getExe config.services.mako.package; firefox = lib.getExe config.programs.firefox.finalPackage; @@ -49,7 +50,10 @@ in { wayland-scripts ]; - sessionVariables.XDG_CURRENT_DESKTOP = "sway"; + sessionVariables = { + XDG_CURRENT_DESKTOP = "sway"; + GRIM_DEFAULT_DIR = config.xdg.userDirs.pictures + "/ss"; + }; }; wayland.windowManager.sway = { @@ -141,6 +145,7 @@ in { "${mod}+minus" = "scratchpad show"; # exec + "print" = "exec ${freezshot}"; "${mod}+return" = "exec ${foot}"; "${mod}+o" = "exec ${bemenu}"; "${mod}+w" = "exec ${firefox}"; -- cgit v1.2.3