dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 204076f85d2e4d0ff778131370bcbd1dbcf8fde2
parent 4cdd7550ac753a7dab409d952124c7e3b48b8e86
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri, 21 May 2021 22:27:22 -0400

Fix maim flags in screenshot script

Diffstat:
M.local/bin/screenshot | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.local/bin/screenshot b/.local/bin/screenshot @@ -15,6 +15,8 @@ Both" flags="-u" +set -x + target=$(echo "$targets" | dmenu -i -l 20 -p 'Take screenshot of:' "$@") || exit 1 saveto=$(echo "$destinations" | dmenu -i -l 20 -p 'Save to:' "$@" ) || exit 1 @@ -37,15 +39,15 @@ esac case "$saveto" in "File") - maim "$flags" > "$filename" \ + maim $flags > "$filename" \ && notify-send "Screenshot Captured" "Saved to $filename" ;; "Clipboard") - maim "$flags" | xclip -sel c -t image/png \ + maim $flags | xclip -sel c -t image/png \ && notify-send "Screenshot Captured" "Copied to clipboard" ;; "Both") - maim "$flags" | tee "$filename" | xclip -sel c -t image/png \ + maim $flags | tee "$filename" | xclip -sel c -t image/png \ && notify-send "Screenshot Captured" "Saved to $filename and copied to clipboard" ;; *)