From ae5cbff75d24c6b5c80834d465fc057c9a2899cb Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 18 Apr 2024 21:55:16 +0200 Subject: [PATCH] Add screenshot keybindings --- modules/home/de/hyprland/config.nix | 4 ++++ users/seb/home.nix | 2 ++ 2 files changed, 6 insertions(+) diff --git a/modules/home/de/hyprland/config.nix b/modules/home/de/hyprland/config.nix index ce68761..74f68d3 100644 --- a/modules/home/de/hyprland/config.nix +++ b/modules/home/de/hyprland/config.nix @@ -95,6 +95,10 @@ # Scroll through workspaces "$mod, mouse_down, workspace, e-1" "$mod, mouse_up, workspace, e+1" + + # Screenshot + ", Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave output" + "SHIFT, Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave area" ] # Switch workspace ++ ( diff --git a/users/seb/home.nix b/users/seb/home.nix index fe52a8c..bee0b7f 100644 --- a/users/seb/home.nix +++ b/users/seb/home.nix @@ -39,6 +39,8 @@ programs.btop.enable = true; + xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; + home.packages = [ pkgs.notepadqq pkgs.brave