case "$1" in
--desk|-d|$NULL)
cd $scrot_dir
- $cmd &&
- sleep 1 &&
- notify-send "screenshot has been saved in $scrot_dir"
- ;;
- --window|-w)
- cd $scrot_dir
- $cmd -u &&
- sleep 1 &&
+ $cmd
+ sleep 1
notify-send "screenshot has been saved in $scrot_dir"
;;
--select|-s)
cd $scrot_dir
- notify-send 'select an area for the screenshot' &
- $cmd -s &&
- sleep 1 && notify-send "screenshot has been saved in $scrot_dir"
+ notify-send 'select a window or drag to select an area for the screenshot' &
+ $cmd -s
+ sleep 1
+ notify-send "screenshot has been saved in $scrot_dir"
;;
--help|-h)
echo "
available options:
-d | --desk full screen
--w | --window active window
-s | --select selection
-h | --help display this information
-The -d or -w options can be used with a delay
+All options can be used with a delay
by adding the number of seconds, like for example:
-'i3-scrot -w 5'
+'i3-scrot -d 5'
Default option is 'full screen'.
available options:
-d | --desk full screen
--w | --window active window
-s | --select selection
-h | --help display this information