Turns out that the screenshot launch flags didn't actually work

This commit is contained in:
Dylan 2016-01-22 21:28:06 +11:00
parent f13ea88dde
commit 0171d3e343
1 changed files with 14 additions and 12 deletions

26
fetch
View File

@ -83,7 +83,7 @@ printinfo () {
# Use wmctrl for a more accurate # Use wmctrl for a more accurate
# window manager reading # window manager reading
use_wmctrl=0 use_wmctrl="off"
# CPU # CPU
@ -256,23 +256,25 @@ xoffset=0
# Other Options {{{ # Other Options {{{
# Take a screenshot # Enable screenshot on script run
# --scrot on/off # Whether or not to always take a screenshot
# You can manually take a screenshot with "--scrot" or "-s"
# --enable_scrot on/off
scrot="off" scrot="off"
# Screenshot program to launch # Screenshot program to launch
# --scrotcmd # --scrotcmd
scrotcmd="scrot -c -d 3" scrot_cmd="scrot -c -d 3"
# Scrot dir # Scrot dir
# Where to save the screenshots # Where to save the screenshots
# --scrotdir /path/to/screenshot/folder # --scrotdir /path/to/screenshot/folder
scrotdir="$HOME/Pictures" scrot_dir="$HOME/Pictures"
# Scrot filename # Scrot filename
# What to name the screenshots # What to name the screenshots
# --scrot str # --scrot str
scrotname="fetch-%Y-%m-%d-%H:%M.png" scrot_name="fetch-%Y-%m-%d-%H:%M.png"
# }}} # }}}
@ -1272,9 +1274,9 @@ usage () { cat << EOF
Screenshot: Screenshot:
--scrot Take a screenshot --scrot Take a screenshot
--scrotdir Directory to save the scrot --scrot_cmd Screenshot program to launch
--scrotfile File name of scrot --scrot_dir Directory to save the scrot
--scrotcmd Screenshot program to launch --scrot_file File name of scrot
Other: Other:
--help Print this text and exit --help Print this text and exit
@ -1352,9 +1354,9 @@ while [ "$1" ]; do
# Screenshot # Screenshot
--scrot | -s) scrot="on" ;; --scrot | -s) scrot="on" ;;
--scrotdir) scrot="$2" ;; --scrot_cmd) scrot_cmd="$2" ;;
--scrotfile) scrot="$2" ;; --scrot_dir) scrot_dir="$2" ;;
--scrotcmd) scrot="$2" ;; --scrot_file) scrot_name="$2" ;;
# Other # Other
--help) usage ;; --help) usage ;;