X-Git-Url: https://git.danix.xyz/?p=my-dotfiles.git;a=blobdiff_plain;f=bin%2Fi3-scrot;fp=bin%2Fi3-scrot;h=57958f004c4d7a4ada898d3ba3978ac96c5c0ee9;hp=27e60bdb627f7d1a066c19438fd5ab790af7803f;hb=7abef725078fc52196b630c95f354fb58864c743;hpb=6be4fcd546b01b14b5f06306ab5b7c0391913bfa diff --git a/bin/i3-scrot b/bin/i3-scrot old mode 100755 new mode 100644 index 27e60bd..57958f0 --- a/bin/i3-scrot +++ b/bin/i3-scrot @@ -24,33 +24,27 @@ fi 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'. @@ -64,7 +58,6 @@ Default is $scrot_dir available options: -d | --desk full screen --w | --window active window -s | --select selection -h | --help display this information