From 5f201dcaea4da0dba0343c6d815ac6f490c6478d Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Thu, 21 Mar 2024 11:25:17 +0300 Subject: [PATCH] add back launch keybind --- modules/desktop/hyprland.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 914edb2..c41d89d 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -64,7 +64,11 @@ in { "SUPER, Super_L, exec, ${lib.getExe pkgs.nwg-drawer}" ]; bind = - [ + let + grabScript = pkgs.writeScript "grab-password" '' + ${lib.getExe pkgs.rbw} get $(${lib.getExe pkgs.gnome.zenity} --entry --text="" --title="") | ${lib.getExe pkgs.xclip} -selection clipboard + ''; + in [ "$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run" ", Print, exec, ${lib.getExe pkgs.grimblast} copy area" "$mod, T, exec, ${lib.getExe pkgs.wezterm}" @@ -88,6 +92,8 @@ in { # Scroll through existing workspaces with mod + scroll "$mod, mouse_down, workspace, e+1" "$mod, mouse_up, workspace, e-1" + + ", XF86Launch1, exec, ${grabScript}" ] ++ ( # workspaces