aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/maim.sh
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-12-10 19:56:18 -0700
committerkatherine <shmibs@shmibbles.me>2017-12-10 19:56:18 -0700
commit0647dceb4f8c8cb64a446e92534925b9089befb3 (patch)
tree10a33bb364cf7af9a68d58e18538b4e2c6423960 /.config/herbstluftwm/maim.sh
parentf9f9f6618a1110e3818874140410006b40f7f7ba (diff)
downloaddotfiles-0647dceb4f8c8cb64a446e92534925b9089befb3.tar.gz
always optipng files
Diffstat (limited to '.config/herbstluftwm/maim.sh')
-rwxr-xr-x.config/herbstluftwm/maim.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/herbstluftwm/maim.sh b/.config/herbstluftwm/maim.sh
index a569460..d01b527 100755
--- a/.config/herbstluftwm/maim.sh
+++ b/.config/herbstluftwm/maim.sh
@@ -41,11 +41,10 @@ if [[ $mode == clipboard ]]; then
exit
fi
-maim -u${selection} $fname
+maim -u${selection} $fname && optipng $fname
if [[ $mode == send ]]; then
[[ -f $fname ]] \
- && optipng $fname \
&& send $fname \
&& notify-send "maim: sent ${fname:t} to /tmp/" \
|| notify-send "maim: send to /tmp/ failed"