summaryrefslogtreecommitdiff
path: root/.local/bin/uwupass
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/uwupass')
-rwxr-xr-x.local/bin/uwupass9
1 files changed, 4 insertions, 5 deletions
diff --git a/.local/bin/uwupass b/.local/bin/uwupass
index aad2a08..348214a 100755
--- a/.local/bin/uwupass
+++ b/.local/bin/uwupass
@@ -60,14 +60,13 @@ target=$(echo "$pass" | eval "$(dbQuery show -s)" -a Password \"$entry\")
# Write the password
-ydotool type "$target"
-message "Finished writing password."
+echo "$target" | wl-copy
+message "Copied password for $entry to selection buffer."
-# Copy TOTP to clipboard
+# Copy TOTP ~~to clipboard~~
totp="$(echo "$pass" | eval "$(dbQuery show -s -t)" \"$entry\")"
echo $totp
if [[ -n "$totp" ]]; then
- message "Copied TOTP ($totp) to selection."
- echo "$totp" | wl-copy
+ message "Your TOTP is $totp."
fi