diff options
| author | Ewy~ <ewy0@protonmail.com> | 2025-03-17 19:13:27 +0100 |
|---|---|---|
| committer | Ewy~ <ewy0@protonmail.com> | 2025-03-17 19:13:27 +0100 |
| commit | 8740db54043bf08982f5183572cdce266048afe0 (patch) | |
| tree | f915ba41ffa2384f2d57a2dceb1cbd8dbecab16e /.local/bin | |
| parent | cf0d96069f039846ffb48bc8a3d6bccb7e2f5a92 (diff) | |
incremental improvements
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/uwuload | 8 | ||||
| -rwxr-xr-x | .local/bin/uwushot | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/uwuload b/.local/bin/uwuload new file mode 100755 index 0000000..f6ae737 --- /dev/null +++ b/.local/bin/uwuload @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail +filename=$(basename "$@") +rsync -r --progress --stats "$@" "root@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." +notify-send -a uwuload -i /usr/share/icons/Papirus-Dark/128x128/devices/network-server.svg "$message" diff --git a/.local/bin/uwushot b/.local/bin/uwushot new file mode 100755 index 0000000..cc99316 --- /dev/null +++ b/.local/bin/uwushot @@ -0,0 +1,5 @@ +#!/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" +uwuload "$filename" |
