Added monitor brightness control with XF86 keys.

This commit is contained in:
Ganome 2025-04-02 10:11:54 -06:00
parent a6320082ef
commit 0ff000be17

View File

@ -112,7 +112,7 @@ static const char *const autostart[] = {
NULL /* terminate */
};
static const char *scratchpadcmd[] = {"s", "ghostty", "--x11-instance-name=spterm", NULL};
static const char *scratchpadcmd[] = {"s", "kitty", "--name=spterm", NULL};
/* Tags
* In a traditional dwm the number of tags in use can be changed simply by changing the number
@ -248,8 +248,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
NULL
}; */
static const char *termcmd[] = { "ghostty", NULL };
static const char *term2cmd[] = { "kitty", NULL };
static const char *termcmd[] = { "kitty", NULL };
static const char *term2cmd[] = { "terminator", NULL };
static const char *wallpapercmd[]= { "/home/ganome/.local/bin/wallsetter.dwm", NULL };
static const char *roficmd[] = {
@ -293,6 +293,8 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_n, spawn, {.v = wallpapercmd } },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ +5%")},
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ -5%")},
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("exec brightnessctl set +5%") },
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("exec brightnessctl set -5%") },
{ 0, XF86XK_AudioMute, spawn, SHCMD("exec pactl set-sink-mute @DEFAULT_SINK@ toggle")},
{ 0, XF86XK_AudioPlay, spawn, SHCMD("exec playerctl play-pause")},
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},