summaryrefslogtreecommitdiff
path: root/.local/bin/uwupass
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-15 02:19:59 +0200
committerewy <ewy0@protonmail.com>2026-05-15 02:19:59 +0200
commit944ddd206af7fd7895d5b149203cd7affa64ca60 (patch)
treef8e39637100d34d90c8dabc5b3d515196f7a86d4 /.local/bin/uwupass
parent9be248d6caf5d5592883928276231548cd56c360 (diff)
a lot of stuff
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