dotfiles

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

commit 90e18d203b8934e82739b45589ef1fc47aada2cc
parent 8dcab2b1261c4c59e23f0e32949ea07d232c41e3
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 18 Jun 2020 19:43:52 -0400

Switch to maim for screenshots

Diffstat:
Mscripts/sh/screenshot.sh | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/scripts/sh/screenshot.sh b/scripts/sh/screenshot.sh @@ -2,16 +2,21 @@ case $1 in "-d") - scrot '%Y-%m-%d-%H-%M-%S_screenshot.png' -e 'mv $f ~/media/pics' \ + maim > ~/media/pics/$(date "+%F-%H-%M-%S").png \ && notify-send -i camera-photo-symbolic "Screenshot Captured" \ "Full desktop; saved to file." ;; "-w") - scrot -u '%Y-%m-%d-%H-%M-%S_screenshot.png' -e 'mv $f ~/media/pics' \ + maim -i $(xdotool getactivewindow) > ~/media/pics/$(date "+%F-%H-%M-%S").png \ && notify-send -i camera-photo-symbolic "Screenshot Captured" \ "Current window only; saved to file." ;; + "-s") + maim -s > ~/media/pics/$(date "+%F-%H-%M-%S").png \ + && notify-send -i camera-photo-symbolic "Screenshot Captured" \ + "Selected region; saved to file." + ;; *) - echo "Invalid option, use -d, or -w" + echo "Invalid option, use -d, -w, or -s." ;; esac