diff options
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/uwuload | 7 | ||||
| -rwxr-xr-x | .local/bin/uwupass | 9 | ||||
| -rwxr-xr-x | .local/bin/uwushot | 9 | ||||
| -rwxr-xr-x[-rw-r--r--] | .local/share/kio/servicemenus/uwuload.desktop | 0 |
4 files changed, 14 insertions, 11 deletions
diff --git a/.local/bin/uwuload b/.local/bin/uwuload index f6ae737..7589958 100755 --- a/.local/bin/uwuload +++ b/.local/bin/uwuload @@ -1,7 +1,8 @@ #!/usr/bin/env bash -set -euo pipefail -filename=$(basename "$@") -rsync -r --progress --stats "$@" "root@ewy.one:/srv/uwu/$filename" +set -euox pipefail +filename="$1" +input='$(abs "$1")' +rsync -r --progress --stats $1 "ewout@ewy.one:/srv/uwu/$filename" url="https://uwu.ewy.one/$filename" echo "$url" | wl-copy message="Uploaded $filename to uwu; copied result URL to clipboard." 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 diff --git a/.local/bin/uwushot b/.local/bin/uwushot index cc99316..59aed24 100755 --- a/.local/bin/uwushot +++ b/.local/bin/uwushot @@ -1,5 +1,8 @@ #!/usr/bin/env bash -set -euo pipefail -filename="~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png" -grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | satty --filename - --disable-notifications --corner-roundness 12 --output-filename "$filename" +set -euxo pipefail +DATE=$(date '+%Y%m%d-%H:%M:%S') +path="$HOME/Pictures/Screenshots/" +filename="satty-$DATE.png" +grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | satty --actions-on-right-click=save-to-file --filename - --disable-notifications --corner-roundness 12 --output-filename "$path$filename" +cd "$path" uwuload "$filename" diff --git a/.local/share/kio/servicemenus/uwuload.desktop b/.local/share/kio/servicemenus/uwuload.desktop index 00a4bec..00a4bec 100644..100755 --- a/.local/share/kio/servicemenus/uwuload.desktop +++ b/.local/share/kio/servicemenus/uwuload.desktop |
