aboutsummaryrefslogtreecommitdiff
path: root/sxhkd
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-05-07 02:41:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-05-07 03:34:22 +1200
commita16ad7b710fb2e4085f7d790e699830083d4e102 (patch)
tree5c3e5b1888249ecfc26897fc502ba54a26e22569 /sxhkd
parentRemove daft quotes from vimrc (diff)
downloaddotfiles-a16ad7b710fb2e4085f7d790e699830083d4e102.tar.gz
dotfiles-a16ad7b710fb2e4085f7d790e699830083d4e102.zip
Overhaul screenshot behavior
* Move burdensome logic to new script xsnap(1df) * Switch to otherwise-disused Print/PrtScr key * Add binds for full display and single-window screenshots
Diffstat (limited to 'sxhkd')
-rw-r--r--sxhkd/sxhkdrc16
1 files changed, 8 insertions, 8 deletions
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
index 028b73d7..4322c5ff 100644
--- a/sxhkd/sxhkdrc
+++ b/sxhkd/sxhkdrc
@@ -31,14 +31,14 @@ super + p
super + v
x-terminal-emulator -e "$VISUAL"
-super + shift + s
- 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_%H%M%S_$wx$h.webp && \
- rm -- $f'
+Print
+ xsnap
+
+control + Print
+ xsnap --freeze --select
+
+super + Print
+ xsnap --focused
super + slash
i3lock --color=#000000 --image "$HOME"/.local/share/i3/lock.png --nofork