more screenshots for github
This commit is contained in:
BIN
assets/screens/chscheme.png
Normal file
BIN
assets/screens/chscheme.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 268 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB |
BIN
assets/screens/keyring.png
Normal file
BIN
assets/screens/keyring.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 242 KiB |
@@ -157,7 +157,7 @@
|
|||||||
"super, c, killactive,"
|
"super, c, killactive,"
|
||||||
"super, e, exec, [float;size 45% 70%;move 10 50] kitty btop"
|
"super, e, exec, [float;size 45% 70%;move 10 50] kitty btop"
|
||||||
"super, n, exec, [float;size 50% 35%;move 10 50] pavucontrol"
|
"super, n, exec, [float;size 50% 35%;move 10 50] pavucontrol"
|
||||||
"super, p, exec, [float;size 25% 30%;move onscreen cursor 20 20] [ ! -f /tmp/passhelperfile ] && kitty passhelper"
|
"super, p, exec, [float;size 25% 30%;move onscreen cursor 20 20] [ ! -f /tmp/keyringfile ] && kitty keyring"
|
||||||
"super, 0, exec, aplay ~/assets/sound/soundtest.wav"
|
"super, 0, exec, aplay ~/assets/sound/soundtest.wav"
|
||||||
"super shift, q, exit,"
|
"super shift, q, exit,"
|
||||||
"super, m, exec, fuzzel"
|
"super, m, exec, fuzzel"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
self = self;
|
self = self;
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
};
|
};
|
||||||
passhelper = import ./wm-controls/passhelper.nix {
|
keyring = import ./wm-controls/keyring.nix {
|
||||||
self = self;
|
self = self;
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
};
|
};
|
||||||
@@ -93,7 +93,7 @@ in {
|
|||||||
home.packages = [
|
home.packages = [
|
||||||
compress
|
compress
|
||||||
chscheme
|
chscheme
|
||||||
passhelper
|
keyring
|
||||||
crs
|
crs
|
||||||
extract
|
extract
|
||||||
garbage-collect
|
garbage-collect
|
||||||
|
|||||||
@@ -3,21 +3,21 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
pkgs.writeShellScriptBin "passhelper" ''
|
pkgs.writeShellScriptBin "keyring" ''
|
||||||
#!/run/current-system/sw/bin/bash
|
#!/run/current-system/sw/bin/bash
|
||||||
|
|
||||||
# prevent multiple instances, conditional check happens in the hyprland bind
|
# prevent multiple instances, conditional check happens in the hyprland bind
|
||||||
touch /tmp/passhelperfile
|
touch /tmp/keyringfile
|
||||||
trap "[ -f /tmp/passhelperfile ] && /run/current-system/sw/bin/rm /tmp/passhelperfile" EXIT SIGHUP SIGINT
|
trap "[ -f /tmp/keyringfile ] && /run/current-system/sw/bin/rm /tmp/keyringfile" EXIT SIGHUP SIGINT
|
||||||
|
|
||||||
# get passwords from password store, remove .password store/ prefix and .gpg suffix, exlude .gpg-id file, open results in fzf
|
# get passwords from password store, remove .password store/ prefix and .gpg suffix, exlude .gpg-id file, open results in fzf
|
||||||
pass_string=$(find $HOME/.password-store -type f | sed 's|.*/.password-store/||; s|\.gpg$||' | sed 's|^\([^/]*\)|\x1b[32m\1\x1b[0m|' | rg -v "\.git|.gpg-id" | sort -r | fzf --border --border-label="$(whoami)'s keyring" --ansi --layout=reverse)
|
pass_string=$(find $HOME/.password-store -type f | sed 's|.*/.password-store/||; s|\.gpg$||' | sed 's|^\([^/]*\)|\x1b[32m\1\x1b[0m|' | rg -v "\.git|.gpg-id" | sort -r | fzf --border --border-label="$(whoami)'s keyring" --ansi --layout=reverse)
|
||||||
|
|
||||||
[ $? = 0 ] || { [ -f /tmp/passhelperfile ] && /run/current-system/sw/bin/rm /tmp/passhelperfile; exit 1; }
|
[ $? = 0 ] || { [ -f /tmp/keyringfile ] && /run/current-system/sw/bin/rm /tmp/keyringfile; exit 1; }
|
||||||
|
|
||||||
# pass it through fmt for soft word wrapping
|
# pass it through fmt for soft word wrapping
|
||||||
pass -c "$pass_string" | fmt -w 45
|
pass -c "$pass_string" | fmt -w 45
|
||||||
/run/current-system/sw/bin/rm /tmp/passhelperfile
|
/run/current-system/sw/bin/rm /tmp/keyringfile
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
exit 0
|
exit 0
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user