This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 5pkgs / otpmenu / default.nix
390 B 11 lines
1{ pkgs }: 2pkgs.writers.writeDashBin "otpmenu" '' 3set -efux 4x=$(${pkgs.pass}/bin/pass git ls-files '*/otp.gpg' \ 5 | ${pkgs.gnused}/bin/sed 's:/otp\.gpg$::' \ 6 | ${pkgs.dmenu}/bin/dmenu 7) 8 9otp=$(${(pkgs.pass.withExtensions (ext: [ ext.pass-otp ]))}/bin/pass otp code "$x/otp") 10printf %s "$otp" | ${pkgs.wtype}/bin/wtype -s 1 - || printf %s "$otp" | ${pkgs.xdotool}/bin/xdotool type -f - 11''