brightness and volume
This commit is contained in:
@@ -64,6 +64,8 @@ static const char *sobercmd[] = { "flatpak", "run", "org.vinegarhq.Sober", NULL
|
|||||||
static const char *steamcmd[] = { "steam", NULL };
|
static const char *steamcmd[] = { "steam", NULL };
|
||||||
static const char *browsercmd[] = { "librewolf", NULL };
|
static const char *browsercmd[] = { "librewolf", NULL };
|
||||||
|
|
||||||
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_space, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_space, spawn, {.v = dmenucmd } },
|
||||||
@@ -89,6 +91,13 @@ static const Key keys[] = {
|
|||||||
{ MODKEY, XK_s, spawn, {.v = sobercmd } },
|
{ MODKEY, XK_s, spawn, {.v = sobercmd } },
|
||||||
{ MODKEY, XK_g, spawn, {.v = steamcmd } },
|
{ MODKEY, XK_g, spawn, {.v = steamcmd } },
|
||||||
{ MODKEY, XK_b, spawn, {.v = browsercmd } },
|
{ MODKEY, XK_b, spawn, {.v = browsercmd } },
|
||||||
|
|
||||||
|
{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44") },
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44") },
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%+ && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; kill -44") },
|
||||||
|
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl set +10%; kill -44") },
|
||||||
|
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl set 10%-; kill -44") },
|
||||||
|
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user