dwm keybinds brightness

This commit is contained in:
wt
2024-07-03 23:23:18 +07:00
parent 40dab21d2f
commit d2bcf23a85
3 changed files with 16 additions and 0 deletions
+16
View File
@@ -79,6 +79,11 @@ static const char *pamixerdcmd[] = { "pamixer", "-d", "10", NULL };
static const char *pamixermutecmd[] = { "pamixer", "-t", NULL };
//-------------------------------------------------------------------
//----------------------------- brightness --------------------------
static const char *brightnessupcmd[] = { "brightnessctl", "s", "10%+", NULL };
static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL };
//-------------------------------------------------------------------
static const Key keys[] = {
/* modifier key function argument */
@@ -87,9 +92,20 @@ static const Key keys[] = {
{ 0, 0x1008ff13, spawn, {.v = pamixericmd } },
// XF86AudioLowerVolume
{ 0, 0x1008ff11, spawn, {.v = pamixerdcmd } },
// equal
{ MODKEY, 0x3d, spawn, {.v = pamixericmd } },
// minus
{ MODKEY, 0x2d, spawn, {.v = pamixerdcmd } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = pamixermutecmd } },
//----------------------------------------------------------------------------------
//---------------------------------- brightness ------------------------------------
// XF86MonBrightnessUp
{ 0, 0x1008ff02, spawn, {.v = brightnessupcmd } },
// XF86MonBrightnessDown
{ 0, 0x1008ff03, spawn, {.v = brightnessdowncmd } },
//----------------------------------------------------------------------------------
//--------------------------------- applications -----------------------------------
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockercmd } },
{ MODKEY, XK_p, spawn, {.v = roficmd } },
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.