Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

25
.bin/OLD/sshot Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
. ${HOME}/.bin/_config
trap cleanup 1 2 3 6
cleanup() { rm -f "$file"; }
# FILENAME
file="${HOME}/Downloads/Screenshots/$(date "+%Y-%m-%d_%H-%M-%S")-sshot.png"
mkdir -p "$(dirname "$file")"
# TAKE SCREENSHOT
flameshot gui -p "$file"
test -f "$file" || exit 1
# COMPRESS
test -f /usr/local/bin/pngcrush \
&& pngcrush -reduce "$file"
# UPLOAD
_SWM_WS=-1 texec "upload \"$file\""
# NOTIFY
NOTIFY_CMD "$(xclip -o)"