add dmenu style password menu using walker

This commit is contained in:
Joakim Repomaa
2025-10-09 19:32:47 +03:00
parent 8f85e5662a
commit 7750db3cbf

View File

@@ -82,6 +82,13 @@
pkgs-unstable.feishin
openscad
bambu-studio
pkgs-unstable.walker
(writeShellScriptBin "pw" ''
${lib.getExe rbw} ls --fields 'id,folder,name' | \
${lib.getExe gawk} -F '\t' '{print $1 "\t" ($2 == "" ? "" : $2 "/") $3}' | \
${lib.getExe pkgs-unstable.walker} -d -l 2 | \
xargs ${lib.getExe rbw} get "$@" | ${lib.getExe' wl-clipboard "wl-copy"}
'')
];
programs = {
@@ -553,6 +560,7 @@
disable-ccid = true;
};
programs.rbw.enable = true;
xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = lib.strings.concatLines [
(builtins.readFile "${pkgs.gnome-keyring}/etc/xdg/autostart/gnome-keyring-ssh.desktop")
"X-GNOME-Autostart-enabled=false"