Add volume keys and add NULL for fixing endless execvp()
This commit is contained in:
parent
f4b1630b7e
commit
ff967aa0f5
21
config.h
21
config.h
@ -104,19 +104,34 @@ static const char *nmcedit[] = { "nm-connection-editor" , NULL };
|
|||||||
|
|
||||||
static const char *top[] = { "kitty" , "htop" , NULL };
|
static const char *top[] = { "kitty" , "htop" , NULL };
|
||||||
|
|
||||||
static const char *briup[] = { "brightnessctl", "set", "+10%" };
|
static const char *volup[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+2%", NULL };
|
||||||
static const char *bridown[] = { "brightnessctl", "set", "10%-" };
|
static const char *voldown[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-2%", NULL };
|
||||||
|
|
||||||
static const char *intip[] = { "bash" , "/home/aji/.dwm/aji.sh", "info"};
|
static const char *briup[] = { "brightnessctl", "set", "+10%", NULL };
|
||||||
|
static const char *bridown[] = { "brightnessctl", "set", "10%-", NULL };
|
||||||
|
|
||||||
|
static const char *intip[] = { "bash" , "/home/aji/.dwm/aji.sh", "info", NULL};
|
||||||
|
|
||||||
#include "aji.c"
|
#include "aji.c"
|
||||||
#include <X11/XF86keysym.h>
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown} },
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup} },
|
||||||
|
|
||||||
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = bridown} },
|
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = bridown} },
|
||||||
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = briup} },
|
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = briup} },
|
||||||
|
|
||||||
|
{ MODKEY, XK_comma, spawn, {.v = voldown} },
|
||||||
|
{ MODKEY, XK_period, spawn, {.v = volup} },
|
||||||
|
|
||||||
|
{ MODKEY|Mod1Mask, XK_comma, spawn, {.v = bridown} },
|
||||||
|
{ MODKEY|Mod1Mask, XK_period, spawn, {.v = briup} },
|
||||||
|
|
||||||
{ MODKEY, XK_i, spawn, {.v = intip} },
|
{ MODKEY, XK_i, spawn, {.v = intip} },
|
||||||
|
|
||||||
{ MODKEY, XK_BackSpace, view, {0} },
|
{ MODKEY, XK_BackSpace, view, {0} },
|
||||||
{ MODKEY, XK_a, view, {.ui = ~0} }, // Select all tags. Cancel it with `MODKEY + [tag key]`.
|
{ MODKEY, XK_a, view, {.ui = ~0} }, // Select all tags. Cancel it with `MODKEY + [tag key]`.
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_p, tag, {.ui = ~0} }, // Pin current window to all tags. Cancel it with `MODKEY + Shift + [tag key]`.
|
{ MODKEY|ControlMask|ShiftMask, XK_p, tag, {.ui = ~0} }, // Pin current window to all tags. Cancel it with `MODKEY + Shift + [tag key]`.
|
||||||
|
Loading…
Reference in New Issue
Block a user