initial commit
This commit is contained in:
commit
c094b5770c
113 changed files with 6879 additions and 0 deletions
25
pkgs/otp/otp.sh
Normal file
25
pkgs/otp/otp.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue