about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAcid Bong <acid-bong@cock.lt>2022-10-21 22:01:19 +0300
committerAcid Bong <acid-bong@cock.lt>2022-10-21 22:01:19 +0300
commitc54752d0d8b64f16fd3a1f78009296eec2b47223 (patch)
tree2f25d259cc2688fc877fc4d70d3d8bd0ec22ebf4
parentd8046574c8a1003211798fa6d4f5db4bde7a8873 (diff)
downloaddwm-c54752d0d8b64f16fd3a1f78009296eec2b47223.tar.gz
keys: brightness status control
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 2617aa2..3f350fb 100644
--- a/config.def.h
+++ b/config.def.h
@@ -107,8 +107,8 @@ static const Key keys[] = {
 	{ 0,		XF86XK_AudioLowerVolume,	spawn,	SHCMD("pamixer -d 5; kill -35 $(pidof dwmblocks)") },
 	{ 0,		XF86XK_AudioMute,		spawn,	SHCMD("pamixer -t; kill -35 $(pidof dwmblocks)") },
 		/* brightness control */
-	{ 0,		XF86XK_MonBrightnessUp,		spawn,	SHCMD("light -A 5") },
-	{ 0,		XF86XK_MonBrightnessDown,	spawn,	SHCMD("light -U 5") },
+	{ 0,		XF86XK_MonBrightnessUp,		spawn,	SHCMD("light -A 5; kill -36 $(pidof dwmblocks)") },
+	{ 0,		XF86XK_MonBrightnessDown,	spawn,	SHCMD("light -U 5; kill -36 $(pidof dwmblocks)") },
 		/* screenshots with scrotre */
 	{ 0,				XK_Print,	spawn,	SHCMD("scrotre -C") },
 	{ ShiftMask,			XK_Print,	spawn,	SHCMD("scrotre '$HOME/Изображения/Скриншоты/%Y-%m-%d-%H%M%S_$wx$h_scrotre.png'") },