mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add quickpass
This commit is contained in:
parent
6b01f9d032
commit
66a543abf7
3 changed files with 44 additions and 0 deletions
|
|
@ -19069,6 +19069,32 @@ This app allows me, in conjunction with my Yubikey, to quickly enter passwords w
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** quickpass
|
||||||
|
#+begin_src shell :tangle files/scripts/quickpass.sh :mkdirp yes
|
||||||
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
notify-send "$(env | grep -E 'WAYLAND|SWAY')"
|
||||||
|
|
||||||
|
password="$1"
|
||||||
|
|
||||||
|
pass show "$password" | {
|
||||||
|
IFS= read -r pass
|
||||||
|
printf %s "$pass"
|
||||||
|
} | wtype -
|
||||||
|
|
||||||
|
notify-send -u critical -a pass -t 1000 "Typed Password"
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src nix-ts :tangle pkgs/quickpass/default.nix
|
||||||
|
{ self, name, writeShellApplication, libnotify, pass, wtype }:
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
|
runtimeInputs = [ libnotify pass wtype ];
|
||||||
|
text = builtins.readFile "${self}/files/scripts/${name}.sh";
|
||||||
|
}
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** cura5
|
*** cura5
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:799579f3-ddd3-4f76-928a-a8c665980476
|
:CUSTOM_ID: h:799579f3-ddd3-4f76-928a-a8c665980476
|
||||||
|
|
|
||||||
12
files/scripts/quickpass.sh
Normal file
12
files/scripts/quickpass.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
notify-send "$(env | grep -E 'WAYLAND|SWAY')"
|
||||||
|
|
||||||
|
password="$1"
|
||||||
|
|
||||||
|
pass show "$password" | {
|
||||||
|
IFS= read -r pass
|
||||||
|
printf %s "$pass"
|
||||||
|
} | wtype -
|
||||||
|
|
||||||
|
notify-send -u critical -a pass -t 1000 "Typed Password"
|
||||||
6
pkgs/quickpass/default.nix
Normal file
6
pkgs/quickpass/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ self, name, writeShellApplication, libnotify, pass, wtype }:
|
||||||
|
writeShellApplication {
|
||||||
|
inherit name;
|
||||||
|
runtimeInputs = [ libnotify pass wtype ];
|
||||||
|
text = builtins.readFile "${self}/files/scripts/${name}.sh";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue