|
|
@ -95,18 +95,21 @@ static const char *togglevolcmd[] = |
|
|
|
static const char *togglemiccmd[] = |
|
|
|
static const char *togglemiccmd[] = |
|
|
|
{ "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; |
|
|
|
{ "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; |
|
|
|
/* brightness up */ |
|
|
|
/* brightness up */ |
|
|
|
static const char *brightness_up[] = { "xbacklight", "-inc", "10", NULL }; |
|
|
|
static const char *brightness_upcmd[] = { "xbacklight", "-inc", "10", NULL }; |
|
|
|
/* brightness down */ |
|
|
|
/* brightness down */ |
|
|
|
static const char *brightness_down[] = { "xbacklight", "-dec", "10", NULL }; |
|
|
|
static const char *brightness_downcmd[] = { "xbacklight", "-dec", "10", NULL }; |
|
|
|
|
|
|
|
/* screenshot */ |
|
|
|
|
|
|
|
static const char *screenshotcmd[] = { "flameshot", "gui", NULL }; |
|
|
|
|
|
|
|
|
|
|
|
static const Key keys[] = { |
|
|
|
static const Key keys[] = { |
|
|
|
/* modifier key function argument */ |
|
|
|
/* modifier key function argument */ |
|
|
|
{ 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, |
|
|
|
{ 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, |
|
|
|
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, |
|
|
|
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, |
|
|
|
{ 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, |
|
|
|
{ 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, |
|
|
|
{ 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, |
|
|
|
{ 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, |
|
|
|
{ 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_up } }, |
|
|
|
{ 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_upcmd } }, |
|
|
|
{ 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_down } }, |
|
|
|
{ 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_downcmd } }, |
|
|
|
|
|
|
|
{ 0, XK_Print, spawn, { .v = screenshotcmd } }, |
|
|
|
{ MODKEY, XK_p, spawn, {.v = roficmd } }, |
|
|
|
{ MODKEY, XK_p, spawn, {.v = roficmd } }, |
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
|
|
|
{ MODKEY, XK_b, togglebar, {0} }, |
|
|
|
{ MODKEY, XK_b, togglebar, {0} }, |
|
|
|