elenapan/Scripts/scrot_plus_notification.sh
elena dd677bde98 massive config and scripts update
Former-commit-id: 46c2bf7d26
Former-commit-id: ec0b4e689f3f8e97d837848929a1a6a9e45f779b
Former-commit-id: 19f055447f5fd666a270a51cf98b05d70716e826
2018-01-21 14:19:40 +02:00

9 lines
582 B
Bash
Executable file

#!/bin/bash
if [[ "$1" = "-s" ]]; then
notify-send 'Select area to capture.' --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
else
scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/Screenshots/';
notify-send "Screenshot taken." --icon=/home/elena/.icons/oomox-wally-flat/apps/scalable/gnome-screenshot.svg --urgency low
fi