summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2023-11-19 11:22:00 -0600
committerCraig Jennings <craigmartinjennings@gmail.com>2023-11-19 11:22:00 -0600
commitd2d1bc5e68253efeefc1b7bea47eddb9eec94ff2 (patch)
tree0ea33d81c4b5b50d386ad900240bd8a82f475285 /config.def.h
parentdbe2fcce51429dcbca426f1832eab9b3cc282c2d (diff)
adding brightness controls
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 394a264..541becd 100644
--- a/config.def.h
+++ b/config.def.h
@@ -148,6 +148,10 @@ static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%
static const char *downvol[] = { "pactl", "set-sink-volume", "0", "-5%", NULL };
static const char *mutevol[] = { "pactl", "set-sink-mute", "0", "toggle", NULL };
+/* brightbess control */
+static const char *upbright[] = { "brightness", "up", NULL };
+static const char *downbright[] = { "brightness", "down", NULL };
+
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
@@ -201,6 +205,8 @@ static Key keys[] = {
{ 0, XF86XK_AudioMute, spawn, {.v = mutevol } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
+ { 0, XF86XK_MonBrightnessDown, spawn, {.v = downbright } },
+ { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbright } },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = bluetoothcmd } },
{ 0, XK_Print, spawn, {.v = screenshotcmd } },
{ MODKEY|ShiftMask, XK_q, spawn, {.v = exitcmd } },