From 793b053781eead1be3bc77a4c85a92d9ec3651c1 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 16 Feb 2025 20:32:42 -0600 Subject: [PATCH] rofi-rbw: fix keybindings Signed-off-by: Myned --- options/custom/programs/rbw.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/options/custom/programs/rbw.nix b/options/custom/programs/rbw.nix index e7f0b6a..7017174 100644 --- a/options/custom/programs/rbw.nix +++ b/options/custom/programs/rbw.nix @@ -36,10 +36,26 @@ in { # https://github.com/NixOS/nixpkgs/pull/303745 # https://github.com/fdw/rofi-rbw?tab=readme-ov-file#configuration xdg.configFile = { - "rofi-rbw.rc".text = '' + "rofi-rbw.rc".text = let + keybindings = concatStringsSep "," [ + "Ctrl+1:print:username" + "Ctrl+2:print:password" + "Ctrl+3:print:totp" + "Alt+1:type:delay:username" + "Alt+2:type:delay:password" + "Alt+3:type:delay:totp" + "Alt+u:copy:username" + "Alt+p:copy:password" + "Alt+t:copy:totp" + "Alt+s:sync" + ]; + in '' action=copy + keybindings=${keybindings} no-help=true + prompt=󰌾 selector=${config.custom.menu} + target=menu ''; }; }