diff options
| author | ewy <ewy0@protonmail.com> | 2026-07-16 13:06:30 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-07-16 13:06:30 +0200 |
| commit | 7afa48701451653cf251c779ed069677dde92cd5 (patch) | |
| tree | ab1efb4c59dc4af5bd7832d256c5ef15be65e61f /.local | |
| parent | ffde9c98f50b7040300f6a73dc43b2cba3681bc3 (diff) | |
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/uwuload | 6 | ||||
| -rwxr-xr-x | .local/bin/uwupass | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/uwuload b/.local/bin/uwuload index effdb39..63a1d04 100755 --- a/.local/bin/uwuload +++ b/.local/bin/uwuload @@ -1,9 +1,9 @@ #!/usr/bin/env bash set -euox pipefail -file=$1 -filename="$(basename $1)" +file="$*" +filename=$(basename "$file") rsync -r --progress --stats "$file" "ewout@ewy.one:/srv/uwu/$filename" url="https://uwu.ewy.one/$filename" -echo "$url" | wl-copy +echo -n "$url" | wl-copy message="Uploaded $filename to uwu; copied result URL to clipboard." notify-send -a uwuload -i /usr/share/icons/Papirus-Dark/128x128/devices/network-server.svg "$message" diff --git a/.local/bin/uwupass b/.local/bin/uwupass index 348214a..c6ce9e1 100755 --- a/.local/bin/uwupass +++ b/.local/bin/uwupass @@ -60,7 +60,7 @@ target=$(echo "$pass" | eval "$(dbQuery show -s)" -a Password \"$entry\") # Write the password -echo "$target" | wl-copy +echo -n "$target" | wl-copy message "Copied password for $entry to selection buffer." # Copy TOTP ~~to clipboard~~ |
