rbw launcher
This commit is contained in:
parent
d7d49a027c
commit
4b2f0434b2
10 changed files with 62 additions and 35 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
11
modules/home/sway-launcher-desktop.nix
Normal file
11
modules/home/sway-launcher-desktop.nix
Normal 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;
|
||||
}
|
5
modules/home/sway-launcher-providers/rbw-list.fish
Normal file
5
modules/home/sway-launcher-providers/rbw-list.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
for p in (rbw list)
|
||||
echo $p\034rbw\034 $p
|
||||
end
|
5
modules/home/sway-launcher-providers/rbw.conf
Normal file
5
modules/home/sway-launcher-providers/rbw.conf
Normal 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
|
2
modules/home/sway-launcher-providers/sway-launcher-rbw.fish
Executable file
2
modules/home/sway-launcher-providers/sway-launcher-rbw.fish
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env fish
|
||||
PROVIDERS_FILE=providers/rbw.conf sway-launcher-desktop
|
Loading…
Add table
Add a link
Reference in a new issue