Add brightness control

This commit is contained in:
Przemek Grondek 2023-07-29 09:54:33 +02:00
parent 5cdd3b25d6
commit f916445cac

View File

@ -173,6 +173,8 @@ static Key keys[] = {
{ 0, XF86AudioLowerVolume, spawn, SHCMD("volume-set 2%-")}, { 0, XF86AudioLowerVolume, spawn, SHCMD("volume-set 2%-")},
{ 0, XF86AudioRaiseVolume, spawn, SHCMD("volume-set 2%+")}, { 0, XF86AudioRaiseVolume, spawn, SHCMD("volume-set 2%+")},
{ 0, XF86AudioMute, spawn, SHCMD("amixer -D pulse sset Master toggle")}, { 0, XF86AudioMute, spawn, SHCMD("amixer -D pulse sset Master toggle")},
{ 0, XF86MonBrightnessDown, spawn, SHCMD("brightnessctl s 10%-")},
{ 0, XF86MonBrightnessUp, spawn, SHCMD("brightnessctl s +10%")},
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1) TAGKEYS( XK_2, 1)