summaryrefslogtreecommitdiff
path: root/home/wayland/modules
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-16 12:32:40 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-16 12:32:57 +0530
commitfbd73fcf779d16c5876aeb247abece4738387cda (patch)
tree1995ea0b9356a29d57437843d0804e59a685f384 /home/wayland/modules
parentdfc74d5da39840cacb19dd2743727634b53e2cd9 (diff)
home/wayland/sway: bind freezshot to print
Diffstat (limited to 'home/wayland/modules')
-rw-r--r--home/wayland/modules/sway/home.nix7
1 files changed, 6 insertions, 1 deletions
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}";