From 1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Thu, 20 Jan 2022 17:07:39 -0600 Subject: moved many scripts around, small tweaks/rewrites, mounter verify xsudo and xclick scripts --- keyboard/screenshot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboard/screenshot') 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!" -- cgit v1.2.3