diff --git a/lemondwm/config.def.h b/lemondwm/config.def.h index 9f1d5b7..926d055 100644 --- a/lemondwm/config.def.h +++ b/lemondwm/config.def.h @@ -26,8 +26,8 @@ static const int vertpadtab = 33; static const int horizpadtabi = 15; static const int horizpadtabo = 15; static const int scalepreview = 4; -static const char *fonts[] = {"Cozette:style:medium:size=10"}; -static const char dmenufont[] = "Cozette:style:medium:size=10"; +static const char *fonts[] = {"Cozette:style:medium:size=9"}; +static const char dmenufont[] = "Cozette:style:medium:size=9"; static const int colorfultag = 1; /* 0 means use SchemeSel for selected non-vacant tag */ // theme @@ -108,7 +108,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; static const char *dmenucmd[] = {"dmenu_run", NULL}; -static const char *termcmd[] = {"urxvt", NULL}; // change this to your term +static const char *termcmd[] = {"urxvtc", NULL}; // change this to your term static const char *rofi[] = {"rofi", "-show", "drun", NULL}; static const char *layoutmenu_cmd = "/home/lemon/.dwm/layoutmenu.sh"; // change lemon to your username @@ -120,6 +120,11 @@ static const char *pctlnextcmd[] = { "playerctl", "next", NULL }; static const char *raisevolumecmd[] = { "amixer", "-D", "pulse", "sset", "Master", "5%+", NULL }; static const char *lowervolumecmd[] = { "amixer", "-D", "pulse", "sset", "Master", "5%-", NULL }; static const char *mutecmd[] = { "amixer", "-D", "pulse", "sset", "Master", "toggle-mute", NULL }; + +// backlight commands +static const char *raisebacklight[] = { "xbacklight", "-inc", "5", NULL }; +static const char *lowerbacklight[] = { "xbacklight", "-dec", "5", NULL }; + #include static Key keys[] = { // general stuff @@ -162,6 +167,10 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = lowervolumecmd } }, { 0, XF86XK_AudioMute, spawn, {.v = mutecmd } }, + // backlight keys + { 0, XF86XK_MonBrightnessUp, spawn, {.v = raisebacklight } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = lowerbacklight } }, + // tags TAGKEYS(XK_1, 0) TAGKEYS(XK_2, 1)