cleanup
This commit is contained in:
parent
9500135884
commit
ae9fef27c7
1 changed files with 11 additions and 13 deletions
|
|
@ -5,21 +5,19 @@ read -r USER || USER=""
|
||||||
read -r PASS || PASS=""
|
read -r PASS || PASS=""
|
||||||
read -r TOTP || TOTP=""
|
read -r TOTP || TOTP=""
|
||||||
|
|
||||||
# Get the last active window
|
type_sleep=45
|
||||||
#LAST_WINDOW=$(hyprctl clients | grep ^Window | tail -n1 | awk '{print $2}')
|
next_sleep=250
|
||||||
|
|
||||||
# Focus last window
|
|
||||||
$BWZY_REFOCUS_CMD
|
|
||||||
|
|
||||||
# Hide bwzy
|
|
||||||
$BWZY_HIDE_CMD
|
|
||||||
|
|
||||||
# Use wtype to output the USER and PASS
|
# Use wtype to output the USER and PASS
|
||||||
$BWZY_TYPE_CMD "$USER"
|
$BWZY_TYPE_CMD \
|
||||||
$BWZY_TYPE_CMD " "
|
-d $type_sleep "$USER" \
|
||||||
$BWZY_TYPE_CMD "$PASS"
|
-s $next_sleep \
|
||||||
$BWZY_TYPE_CMD " "
|
-k tab \
|
||||||
$BWZY_TYPE_CMD $'\n'
|
-s $next_sleep \
|
||||||
|
-d $type_sleep "$PASS" \
|
||||||
|
-s $next_sleep \
|
||||||
|
-k return
|
||||||
|
|
||||||
[[ -n "$BWZY_NOTIFY_CMD" ]] && $BWZY_NOTIFY_CMD "user & pass autofilled"
|
[[ -n "$BWZY_NOTIFY_CMD" ]] && $BWZY_NOTIFY_CMD "user & pass autofilled"
|
||||||
|
|
||||||
# Copy the TOTP to clipboard
|
# Copy the TOTP to clipboard
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue