(desktop) Gen 459: Added keyring bind to hyprland config, along with a script for it. Super + P
This commit is contained in:
@@ -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
|
||||
|
||||
11
modules/home/scripts/wm-controls/passhelper.nix
Normal file
11
modules/home/scripts/wm-controls/passhelper.nix
Normal 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
|
||||
'')
|
||||
Reference in New Issue
Block a user