Browse Source

brightness control using xbacklight

dwm6.4
Ivan Polyakov 2 years ago
parent
commit
ff89890784
  1. 4
      README.md
  2. 6
      config.def.h

4
README.md

@ -1,3 +1,7 @@
dwm dwm
=== ===
Vilor's dwm based on [dwm 6.4](README.dwm.md) Vilor's dwm based on [dwm 6.4](README.dwm.md)
Used patches
------------
* systray

6
config.def.h

@ -94,6 +94,10 @@ static const char *togglevolcmd[] =
/* toggle microphone */ /* toggle microphone */
static const char *togglemiccmd[] = static const char *togglemiccmd[] =
{ "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; { "/usr/bin/amixer", "set", "Capture", "toggle", NULL };
/* brightness up */
static const char *brightness_up[] = { "xbacklight", "-inc", "10", NULL };
/* brightness down */
static const char *brightness_down[] = { "xbacklight", "-dec", "10", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@ -101,6 +105,8 @@ static const Key keys[] = {
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, { 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } },
{ 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, { 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } },
{ 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, { 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } },
{ 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_up } },
{ 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_down } },
{ MODKEY, XK_p, spawn, {.v = roficmd } }, { MODKEY, XK_p, spawn, {.v = roficmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_b, togglebar, {0} },

Loading…
Cancel
Save