diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 6f1002f..3d34cf6 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -75,9 +75,13 @@ in { bindr = [ # "bind released" "SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}" ]; - bind = [ + bind = let + screenshotScript = pkgs.writeScript "screenshot" '' + ${lib.getExe pkgs.grimblast} --freeze --notify copy area + ''; + in [ "$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run" - ", print, exec, ${lib.getExe pkgs.grimblast} --freeze copy area" + ", print, exec, ${screenshotScript}" "$mod, T, exec, ${lib.getExe pkgs.wezterm}" "$mod, Q, killactive, " @@ -97,6 +101,8 @@ in { # alternatively, scroll through workspaces with mod + brackets "$mod, bracketleft, workspace, e-1" "$mod, bracketright, workspace, e+1" + + ", XF86LaunchA, exec, ${screenshotScript}" ] ++ ( # workspaces # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}