dotfiles/.bin/sshot-farbfeld
2024-02-14 07:55:58 +01:00

14 lines
219 B
Bash
Executable File

#!/bin/sh
[ -z $1 ] && exit 2
. ${HOME}/.bin/_config
# TAKE SCREENSHOT
flameshot gui -p "/tmp/$1.png" > /dev/null 2>&1
test -f "/tmp/$1.png" || exit 1
png2ff < "/tmp/$1.png" | bzip2 > "$1.ff.bz2"
echo "@$1.ff.bz2"