sudo apt-get install compiz compizconfig-settings-manager compiz-plugins curl xsel libnotify-bin
sudo apt-get install xsel libnotify-bin compiz compizconfigconfig-settings-manager compiz-plugins
#!/bin/bash
trap "_exit" INT KILL TERM QUIT
_exit() {
rm -f $SCREEN_FILE
exit
}
LOG_FILE='/var/log/screenshots.log'
SCREEN_FILE='/tmp/screenshot1.png'
LOG_STR=$( curl -s -F "upload=yes" -F "file=@$SCREEN_FILE" -L habreffect.ru/upload.php |\
sed -ne '/\ \|delete:/s/^.*\(http.\+\)".*$/\1/gp' | tr '\n' ' ' |\
sed -e "s/'\ $/\ \]\n/;s/[\ \t]/\t\[del: /;s/^/$(date '+%d.%m.%Y %H:%M')\t/" |\
tee -ai $LOG_FILE | awk '{print $3}' )
[ $? -ne 0 ] && FINISH="[ FAIL ]"
echo $LOG_STR | xsel -b -i
notify-send -t 5000 -i dialog-information " "
_exit
#!/bin/sh
DPDIR=~/Dropbox/Public
ID=ID
if [ -e "$1" ]
then
cp -f "$1" "$DPDIR"
file=`basename "$1"`
link="http://dl.getdropbox.com/u/$ID/$file"
notify-send -i go-down "Dropbox" " "
echo "$link" | xsel -b -i
else
notify-send -i dialog-information "Dropbox" " !"
fi
chmod +x /home/vitali/.bin/dropbox.sh
sudo touch /var/log/screenshots.log && sudo chmod 666 /var/log/screenshots.log
chmod +x /home/vitali/.bin/habreffect.sh
Source: https://habr.com/ru/post/108126/