4 # simple screenshot-script using scrot for manjaro-i3 by oberon@manjaro.org
6 _conf
=$HOME/.config
/i3-scrot.conf
8 if ! [ -f $_conf ]; then
9 echo "scrot_dir=$(xdg-user-dir PICTURES)" > $_conf
14 if ! [ -d $scrot_dir ]; then
18 if ! [[ -z "$2" ]]; then
29 notify-send
"screenshot has been saved in $scrot_dir"
35 notify-send
"screenshot has been saved in $scrot_dir"
39 notify-send
'select an area for the screenshot' &
41 sleep 1 && notify-send
"screenshot has been saved in $scrot_dir"
46 -d | --desk full screen
47 -w | --window active window
48 -s | --select selection
49 -h | --help display this information
51 The -d or -w options can be used with a delay
52 by adding the number of seconds, like for example:
55 Default option is 'full screen'.
57 The file destination can be set in ${_conf}.
63 == ! i3-scrot: missing or wrong argument ! ==
66 -d | --desk full screen
67 -w | --window active window
68 -s | --select selection
69 -h | --help display this information
71 Default option is 'full screen'.
73 The file destination can be set in ${_conf}.