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"
33 notify-send
'select a window or drag to select an area for the screenshot' &
36 notify-send
"screenshot has been saved in $scrot_dir"
41 -d | --desk full screen
42 -s | --select selection
43 -h | --help display this information
45 All options can be used with a delay
46 by adding the number of seconds, like for example:
49 Default option is 'full screen'.
51 The file destination can be set in ${_conf}.
57 == ! i3-scrot: missing or wrong argument ! ==
60 -d | --desk full screen
61 -s | --select selection
62 -h | --help display this information
64 Default option is 'full screen'.
66 The file destination can be set in ${_conf}.