-
-
Save thewh1teagle/1901e0f29261f62945714223d3b8a9dc to your computer and use it in GitHub Desktop.
dwm brightness conrol keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install xbacklight | |
: /etc/X11/xorg.conf | |
Section "Device" | |
Identifier "Card0" | |
Driver "intel" | |
Option "Backlight" "/sys/class/backlight/intel_backlight" | |
EndSection | |
: config.h | |
#include <X11/XF86keysym.h> | |
... | |
static const char *brightup[] = { "/usr/bin/xbacklight", "-inc", "10", NULL }; | |
static const char *brightdown[] = { "/usr/bin/xbacklight", "-dec", "10", NULL }; | |
... | |
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, | |
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment