rbw launcher

This commit is contained in:
Matt Nish-Lapidus 2025-04-06 16:18:55 -04:00
parent d7d49a027c
commit 4b2f0434b2
10 changed files with 62 additions and 35 deletions

View file

@ -11,6 +11,7 @@
gnome
hyprlock
hypridle
sway-launcher-desktop
];
home.packages = lib.mkMerge [
@ -61,7 +62,6 @@
stirling-pdf
ripdrag
sway-launcher-desktop
swayidle
emojify
smile

View file

@ -294,6 +294,10 @@ in
hotkey-overlay.title = "Clipboard History";
action = wezlaunch "clipse";
};
"Mod+Ctrl+P" = {
hotkey-overlay.title = "Bitwarden Search";
action = wezlaunch "/home/emenel/.local/bin/sway-launcher-rbw";
};
"Mod+Ctrl+F" = {
hotkey-overlay.title = "Yazi";
action = wez "yazi";
@ -318,7 +322,7 @@ in
hotkey-overlay.title = "btop++";
action = wez "btop";
};
"Mod+Ctrl+P" = {
"Mod+Ctrl+M" = {
hotkey-overlay.title = "plexamp";
action = spawn "plexamp";
};

View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
sway-launcher-desktop
wl-clipboard
];
xdg.configFile."sway-launcher-desktop/providers".source = ./sway-launcher-providers;
home.file.".local/bin/sway-launcher-rbw".source = ./sway-launcher-providers/sway-launcher-rbw.fish;
}

View file

@ -0,0 +1,5 @@
#!/usr/bin/env fish
for p in (rbw list)
echo $p\034rbw\034󰢁 $p
end

View file

@ -0,0 +1,5 @@
[rbw]
list_cmd=fish /home/emenel/.config/sway-launcher-desktop/providers/rbw-list.fish
preview_cmd=echo -e '󰢁 {1}'
launch_cmd=fish -c "wl-copy (rbw get {1})"
purge_cmd=command -v '{1}' || exit 43

View file

@ -0,0 +1,2 @@
#!/usr/bin/env fish
PROVIDERS_FILE=providers/rbw.conf sway-launcher-desktop