From 1798d2be0db7d5b05a82d86a3e7d44940907b4f4 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Tue, 8 Aug 2023 09:58:03 +0200 Subject: [PATCH] Make pass menu only type the last line of the password string --- home/fhauser/applications/scripts.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/fhauser/applications/scripts.nix b/home/fhauser/applications/scripts.nix index 7288939..ef8b8d9 100644 --- a/home/fhauser/applications/scripts.nix +++ b/home/fhauser/applications/scripts.nix @@ -23,7 +23,7 @@ let [[ -n $password ]] || exit - password_value=$(${pkgs.pass-wayland}/bin/pass show "$password" 2>/dev/null) + password_value=$(${pkgs.pass-wayland}/bin/pass show "$password" | tail -1 2>/dev/null) ${pkgs.wtype}/bin/wtype "''${password_value}" ''; in { home.packages = [ passbemenu ]; }