summaryrefslogtreecommitdiff
path: root/keyboard/screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/screenshot')
-rwxr-xr-xkeyboard/screenshot6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboard/screenshot b/keyboard/screenshot
index 909dbe6..f0d0fff 100755
--- a/keyboard/screenshot
+++ b/keyboard/screenshot
@@ -1,7 +1,7 @@
#!/bin/sh
-printusage() { echo -n "Usage: $0 [-cx]\nOptions:\n-c\tInteractively crop screenshot\n-x\tCopy screenshot to clipboard with xclip rather than saving it\n" && exit; }
+printusage() { echo "Usage: $(basename "$0") [-cx]\n\nOPTIONS:\n -c\tInteractively crop screenshot\n -x\tCopy screenshot to clipboard with xclip rather than saving it" && exit; }
-# scrot and xclip opts
+# Scrot and xclip opts
fmt=$(date '+%m-%d-%4Y_%I:%M:%S_%p.png')
tmppath=/tmp/$fmt
savpath=~/pics/screenshots/$fmt
@@ -10,7 +10,7 @@ cropopt='--select --freeze'
normexp='echo $f'
xclipexp='xclip -selection clipboard -target image/png -i $f && echo $f'
-# notify-send opts
+# Notify-send opts
notifyopts="--expire-time 4000 --urgency low"
normsumm="Screenshot Saved!"
xclipsumm="Screenshot Copied!"