aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
Diffstat (limited to 'X')
-rw-r--r--X/sxhkdrc12
1 files changed, 7 insertions, 5 deletions
diff --git a/X/sxhkdrc b/X/sxhkdrc
index 5299df73..2577e5ba 100644
--- a/X/sxhkdrc
+++ b/X/sxhkdrc
@@ -32,11 +32,13 @@ super + v
urxvtcd -e "$VISUAL"
super + shift + s
- sleep 0.25 && scrot \
- --freeze --select \
- --exec 'xclip -selection clipboard -target image/png $f ; \
- mkdir -p -- "$$HOME"/screenshots/%Y-%m-%d && \
- mv -- $f "$$HOME"/screenshots'
+ sleep 0.25 && scrot --freeze --select \
+ --exec 'xclip -selection clipboard -target image/png $f && \
+ dir=$$HOME/screenshots/%Y-%m-%d && \
+ mkdir --parents -- "$dir" && \
+ convert -- $f -define webp:lossless=true \
+ "$$dir"/%Y-%m-%d_$wx$h.webp && \
+ rm -- $f'
super + slash
i3lock --color=#000000 --image "$HOME"/.local/share/i3/lock.png --nofork