adding nyxtlof and some sway config
This commit is contained in:
parent
6f25e400a9
commit
6e88893a19
4 changed files with 42 additions and 8 deletions
|
@ -39,15 +39,15 @@ option=$(printf '%s\n' "${options[@]%}" | wofi -id -W 400 -H 150 -p"...")
|
|||
case ${option} in
|
||||
Password )
|
||||
# echo "${SECRET}"
|
||||
ydotool type $(rbw get "${SECRET}")
|
||||
ydotool type --next-delay 500 $(rbw get "${SECRET}")
|
||||
;;
|
||||
User )
|
||||
ydotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
|
||||
ydotool type --next-delay 500 "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
|
||||
;;
|
||||
"User and password" )
|
||||
ydotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{$1 = ""; print $0}')
|
||||
ydotool type --next-delay 500 $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
|
||||
ydotool key TAB
|
||||
ydotool type $(rbw get "${SECRET}")
|
||||
ydotool type --next-delay 500 $(rbw get "${SECRET}")
|
||||
;;
|
||||
"QR-Code" )
|
||||
if [[ $SECRET =~ wifi$ ]]; then
|
||||
|
@ -62,7 +62,7 @@ case ${option} in
|
|||
fi
|
||||
;;
|
||||
"OTP" )
|
||||
ydotool type $(rbw code ${SECRET})
|
||||
ydotool type --next-delay 300 $(rbw code ${SECRET})
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue