initial commit

This commit is contained in:
sid 2026-02-23 20:50:47 +01:00
commit c094b5770c
113 changed files with 6879 additions and 0 deletions

25
pkgs/otp/otp.sh Normal file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
DMENU="bemenu"
OPTIONS="github\nth-koeln"
CHOICE=$(echo -e "$OPTIONS" | "$DMENU" -p "OTP:")
get_pass() {
pass otp -c "$1" 2>/dev/null
}
case "$CHOICE" in
"github")
get_pass "www/github.com"
;;
"th-koeln")
get_pass "www/login.th-koeln.de"
;;
*)
echo "Error: Unknown option '$CHOICE'"
exit 1
;;
esac
exit 0