(desktop) Gen 459: Added keyring bind to hyprland config, along with a script for it. Super + P
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
|
||||
shellAliases = {
|
||||
grep = "grep --color=auto";
|
||||
vi = "nvim";
|
||||
mv = "mv -v";
|
||||
cp = "cp -vr";
|
||||
gt = "gtrash";
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
'')
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
{
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
hyprland.enable = true;
|
||||
zsh.enable = true;
|
||||
nix-ld = {
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
|
||||
let
|
||||
nur = config.nur;
|
||||
steamcfg = if (host == "desktop") then [ ./steam.nix ] else [];
|
||||
in
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ]
|
||||
++ steamcfg;
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
|
||||
Reference in New Issue
Block a user