aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2022-12-22 17:11:37 -0800
committerXiao Pan <gky44px1999@gmail.com>2022-12-22 17:11:37 -0800
commitc8cd2a9bf52359fc42bcad699bedf0ab09d7e031 (patch)
treec034d91c4b2786a584808728ad8df75a2ae90981
parent702dd912bf8ca996a94044e4f154e8e4dd92759a (diff)
update
-rw-r--r--config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index cf918d7..dbd2d00 100644
--- a/config.def.h
+++ b/config.def.h
@@ -113,6 +113,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer set Master 5%+; kill -RTMIN+1 $(pidof -x sbar)") },
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("backlight -u") },
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("backlight -d") },
+ // mod-shift-prtsc and mod-ctrl-prtsc does not work well, maybe because of sysrq? but mod-prtsc works well tho
{ 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_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'") },