summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-28 18:56:21 -0700
committerxyz <gky44px1999@gmail.com>2021-09-28 18:56:21 -0700
commit0f9159e848f41f3fb6e2a625e32899b620226d3a (patch)
treefded49e86cf327402d9ecce831b08c226b0356af /.config
parentc1037b22d6534a92e1efaff603ce385615f5da0b (diff)
use xrectsel for screenshot and recordings, refactor
Diffstat (limited to '.config')
-rw-r--r--.config/sxhkd/sxhkdrc20
1 files changed, 10 insertions, 10 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 91d45433..8fce5bd9 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -1,5 +1,8 @@
Print
- ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid)".png
+ xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s "$1"x"$2" -i "$DISPLAY+$3,$4" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid).png"' shell
+
+alt + Print
+ reco
XF86Audio{RaiseVolume,LowerVolume,Mute}
amixer set Master {5%+,5%-,toggle};\
@@ -12,6 +15,12 @@ alt + XF86AudioMute
amixer set Capture toggle;\
kill -RTMIN "$(cat ~/.cache/pidofbar)"
+XF86Audio{Prev,Play,Next}
+ playerctl {previous,play-pause,next}
+
+@Caps_Lock
+ kill -RTMIN+3 "$(cat ~/.cache/pidofbar)"
+
alt + y
mpvy -s
@@ -27,13 +36,4 @@ alt + w
alt + s
shufwall
-XF86Audio{Prev,Play,Next}
- playerctl {previous,play-pause,next}
-
-@Caps_Lock
- kill -RTMIN+3 "$(cat ~/.cache/pidofbar)"
-
-alt + Print
- reco
-
# vim: ft=sh