aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2022-12-22 17:07:48 -0800
committerXiao Pan <gky44px1999@gmail.com>2022-12-22 17:07:48 -0800
commit702dd912bf8ca996a94044e4f154e8e4dd92759a (patch)
treee5ef6f3ed08dae49aa3ec0f5c4fc80baa77003e2
parente52d8d22c7b4840c41ed52decb57ed12b1668459 (diff)
change selection screenshot and recording hotkeys
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 7e7e5a9..cf918d7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -115,7 +115,7 @@ static const Key keys[] = {
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("backlight -d") },
{ 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\" && notify-send 'Screenshot Finished'") },
{ MODKEY, XF86XK_AudioMute, spawn, SHCMD("amixer set Capture toggle; kill -RTMIN $(pidof -x sbar)") },
- { MODKEY, XK_Print, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"' shell && notify-send 'Screenshot Finished'") },
+ { MODKEY, XK_g, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time.uuid).png\"' shell && notify-send 'Screenshot Finished'") },
{ MODKEY, XK_n, spawn, SHCMD("dunstctl close") },
// `xsel -cb` because there's a small delay before reading password into clipboard, so clear it beforehand to prevent pasting old clipboard
{ MODKEY, XK_o, spawn, SHCMD("xsel -cb; pass otp duolibre | tail -n1 | xsel -ibt 3000") },
@@ -129,7 +129,7 @@ static const Key keys[] = {
{ MODKEY, XK_x, spawn, SHCMD("sleep 0.3; xcross") },
{ MODKEY, XK_y, spawn, SHCMD("mpvy -s") },
{ MODKEY|ControlMask, XK_y, spawn, SHCMD("tsp mpvy -A -u \"$(xsel -ob)\"") },
- { MODKEY|ShiftMask, XK_Print, spawn, SHCMD("reco") },
+ { MODKEY|ShiftMask, XK_g, spawn, SHCMD("reco") },
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("alarm 12 'Boiling Water!'") },
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("shufwall") },
{ MODKEY|ShiftMask, XK_w, spawn, SHCMD("\"$BROWSER\" \"youtu.be/$(xsel -op)\"") },