(desktop) Gen 459: Added keyring bind to hyprland config, along with a script for it. Super + P

This commit is contained in:
pagedMov
2024-10-13 23:55:46 -04:00
parent 883301de37
commit f12238962e
7 changed files with 25 additions and 10 deletions

View File

@@ -40,6 +40,7 @@
shellAliases = {
grep = "grep --color=auto";
vi = "nvim";
mv = "mv -v";
cp = "cp -vr";
gt = "gtrash";

View File

@@ -141,11 +141,11 @@
"super, c, killactive,"
"super, e, exec, [float;size 45% 70%;move 10 50] kitty btop"
"super, n, exec, [float;size 50% 35%;move 10 50] pavucontrol"
"super, p, exec, [float;size 31% 30%;move onscreen cursor 0 0] kitty passhelper"
"super, p, exec, aplay ~/media/sound/soundtest.wav"
"super shift, q, exit,"
"super, m, exec, fuzzel"
"super, r, exec, neovide"
"super, p, pseudo, # dwindle"
"super, b, togglesplit, # dwindle"
"super, f, togglefloating"
"super, g, fullscreen"

View File

@@ -2,6 +2,7 @@
let
compress = (import ./commands/compress.nix { self = self; pkgs = pkgs;});
passhelper = (import ./wm-controls/passhelper.nix { self = self; pkgs = pkgs;});
crs = (import ./commands/crs.nix { self = self; pkgs = pkgs;});
extract = (import ./commands/extract.nix { self = self; pkgs = pkgs;});
invoke = (import ./commands/invoke.nix { self = self; pkgs = pkgs;});
@@ -29,6 +30,7 @@ in
{
home.packages = [
compress
passhelper
crs
extract
garbage-collect

View File

@@ -0,0 +1,11 @@
{ self, pkgs, ... }:
pkgs.writeShellScriptBin "passhelper" (''
#!/run/current-system/sw/bin/bash
pass_string=$(find $HOME/.password-store -type f | sed 's|.*/.password-store/||; s|\.gpg$||' | rg -v ".gpg-id$" | fzf)
pass -c "$pass_string"
sleep 1.5
exit 0
'')