diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-01-11 20:57:53 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-11 20:57:53 +0530 |
commit | f3bb4fdd87468fdd351dd825b1e88ff69a4ff787 (patch) | |
tree | 77fd8cb4c6343e997da1d8708e5ed5ce13d27d09 | |
parent | e520e4ba63fb3385b7cb6ff4624dd8207a020507 (diff) |
brictl: add support for fine brightness control
-rw-r--r-- | config.def.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 03ea88f..c30fdcf 100644 --- a/config.def.h +++ b/config.def.h @@ -85,7 +85,7 @@ static const char *scrnshot[] = { "scst", NULL }; static const char *scrnshotsel[] = { "scst", "s", NULL }; static const char *nnnfm[] = { "st", "nnn", "-decC", NULL }; static const char *bluctl[] = { "bluctl", NULL }; -static const char *damb[] = { "damb", NULL }; +static const char *damb[] = { "damb", NULL }; static const char *web[] = { "tabbed", "-c", "surf", "-e", NULL }; static const char *webalt[] = { "librewolf", NULL }; static const char *ncmpcpp[] = { "st", "ncmpcpp-ueberzug", NULL }; @@ -94,6 +94,8 @@ static const char *ytsub[] = { "st", "ytfzf", "-tl", "--subs=4", NULL }; static const char *sticker[] = { "stikman", NULL }; /* audio control */ +static const char *upbri[] = { "brictl", "-i", "1", NULL }; +static const char *downbri[] = { "brictl", "-d", "1", NULL }; static const char *upvol[] = { "pamixer", "-i", "5", NULL }; static const char *downvol[] = { "pamixer", "-d", "5", NULL }; static const char *mutevol[] = { "pamixer", "-t", NULL }; @@ -132,6 +134,8 @@ static const Key keys[] = { { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, + { 0, XK_XF86MonBrightnessUp, spawn, {.v = upbri } }, + { 0, XK_XF86MonBrightnessDown, spawn, {.v = downbri } }, { 0, XK_XF86AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XK_XF86AudioLowerVolume, spawn, {.v = downvol } }, { 0, XK_XF86AudioMute, spawn, {.v = mutevol } }, |