From 17dd88d7ab4b37f2ba4873f9910f3c0d65ee9940 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Thu, 25 Jul 2024 17:16:41 -0700 Subject: [PATCH] better password selector --- modules/desktop/hyprland.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 278064f..d0be81b 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -97,9 +97,6 @@ in { ;; esac ''; - grabPasswordScript = pkgs.writeScript "grab-password" '' - ${lib.getExe pkgs.rbw} get $(${lib.getExe pkgs.zenity} --entry --text="Enter the name for your password entry to copy it to your clipboard" --title="Password") | ${lib.getExe pkgs.wl-clipboard-x11} -selection clipboard - ''; in [ "$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run" ", print, exec, ${screenshotScript}" @@ -128,7 +125,7 @@ in { "$mod, bracketright, workspace, e+1" ", XF86LaunchA, exec, ${screenshotScript}" - ", XF86LaunchB, exec, ${grabPasswordScript}" + ", XF86LaunchB, exec, ${lib.getExe pkgs.rofi-rbw-wayland} -a copy -t password --clear-after 20" ] ++ ( # workspaces # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}