diff --git a/README.md b/README.md index 37f70db..f72bd77 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,5 @@ and (re)compiling the source code. * Use [light-locker](https://github.com/the-cavalry/light-locker) to lock screen with [LightDM](https://github.com/canonical/lightdm) * Arch Community Repo: [lightdm](https://www.archlinux.org/packages/extra/x86_64/lightdm/) * Arch Community Repo: [light-locker](https://www.archlinux.org/packages/community/x86_64/light-locker/) +* Brightness Increase and Decrease Keybindings via [acpilight](https://gitlab.com/wavexx/acpilight) + * Arch Community Repo: [acpilight](https://www.archlinux.org/packages/community/any/acpilight/) diff --git a/config.h b/config.h index be98a51..ddc6595 100644 --- a/config.h +++ b/config.h @@ -81,6 +81,8 @@ static const char *termcmd[] = { "alacritty", NULL }; static const char *upvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+1%", NULL }; static const char *downvolcmd[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1%", NULL }; static const char *mutevolcmd[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; +static const char *brightness_up[] = { "xbacklight", "-inc", "1", NULL }; +static const char *brightness_down[] = { "xbacklight", "-dec", "1", NULL }; static const char *playerplaypausecmd[] = { "playerctl", "--player=playerctld", "play-pause", NULL }; static const char *playernextcmd[] = { "playerctl", "--player=playerctld", "next", NULL }; static const char *playerprevcmd[] = { "playerctl", "--player=playerctld", "previous", NULL }; @@ -129,6 +131,8 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvolcmd} }, { 0, XF86XK_AudioMute, spawn, {.v = mutevolcmd} }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvolcmd} }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightness_up} }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightness_down} }, { 0, XF86XK_AudioPlay, spawn, {.v = playerplaypausecmd} }, { 0, XF86XK_AudioNext, spawn, {.v = playernextcmd} }, { 0, XF86XK_AudioPrev, spawn, {.v = playerprevcmd} },