~jbauer/dwm

0c245302455ecb6c331a072bd447dc5cd0258f7b — Jake Bauer 3 months ago 379034c
Update commands
1 files changed, 23 insertions(+), 23 deletions(-)

M config.def.h
M config.def.h => config.def.h +23 -23
@@ 78,37 78,37 @@ static const char *termcmd[]  = { "st", NULL };
static const char *scratchpadcmd[] = { "s", "st", "-t", "scratchpad", NULL };
static const char *calculatorcmd[] = { "c", "st", "-t", "calculator", "-g", "50x20", "-e", "bc", "-l", NULL };

static const char *audioucmd[]       = { "change-volume", "1%+", NULL };
static const char *audiodcmd[]       = { "change-volume", "1%-", NULL };
static const char *audiomutecmd[]    = { "change-volume", "toggle", NULL };
static const char *audiomicmutecmd[] = { "change-volume", "toggle-mic", NULL };

static const char *cmusstopcmd[] = { "cmus-control", "-s", NULL };
static const char *cmusplaycmd[] = { "cmus-control", "-u", NULL };
static const char *cmusnextcmd[] = { "cmus-control", "-n", NULL };
static const char *cmusprevcmd[] = { "cmus-control", "-r", NULL };
static const char *cmusshufcmd[] = { "cmus-control", "-S", NULL };
static const char *cmusreptcmd[] = { "cmus-control", "-R", NULL };
static const char *audioup[]         = { "change-volume", "up", NULL };
static const char *audiodown[]       = { "change-volume", "down", NULL };
static const char *audiotogglemute[] = { "change-volume", NULL };

static const char *cmusstop[] = { "cmus-control", "-s", NULL };
static const char *cmusplay[] = { "cmus-control", "-u", NULL };
static const char *cmusnext[] = { "cmus-control", "-n", NULL };
static const char *cmusprev[] = { "cmus-control", "-r", NULL };
static const char *cmusshuf[] = { "cmus-control", "-S", NULL };
static const char *cmusrept[] = { "cmus-control", "-R", NULL };

static const char *emojitype[] = { "emoji-type", NULL };

static const char *screenshot[] = { "screenshot", NULL };

static const char *lockscreencmd[] = { "lockscreen", NULL };
static const char *suspendcmd[]    = { "lockscreen", "suspend", NULL };
static const char *lockscreen[] = { "lockscreen", NULL };
static const char *suspend[]    = { "lockscreen", "suspend", NULL };

static Key keys[] = {
	/* modifier                     key        function        argument */
	{ 0|Mod1Mask,                   XK_equal,  spawn,          {.v = audioucmd } },
	{ 0|Mod1Mask,                   XK_minus,  spawn,          {.v = audiodcmd } },
	{ 0|Mod1Mask,                   XK_Up,     spawn,          {.v = cmusstopcmd } },
	{ 0|Mod1Mask,                   XK_Down,   spawn,          {.v = cmusplaycmd } },
	{ 0|Mod1Mask,                   XK_Right,  spawn,          {.v = cmusnextcmd } },
	{ 0|Mod1Mask,                   XK_Left,   spawn,          {.v = cmusprevcmd } },
	{ 0|Mod1Mask,                   XK_s,      spawn,          {.v = cmusshufcmd } },
	{ 0|Mod1Mask,                   XK_r,      spawn,          {.v = cmusreptcmd } },
	{ 0|ControlMask|Mod1Mask,       XK_l,      spawn,          {.v = lockscreencmd } },
	{ 0|ControlMask|Mod1Mask,       XK_s,      spawn,          {.v = suspendcmd } },
	{ 0|Mod1Mask,                   XK_equal,  spawn,          {.v = audioup } },
	{ 0|Mod1Mask,                   XK_minus,  spawn,          {.v = audiodown } },
	{ 0|Mod1Mask,                   XK_0,      spawn,          {.v = audiotogglemute } },
	{ 0|Mod1Mask,                   XK_Up,     spawn,          {.v = cmusstop } },
	{ 0|Mod1Mask,                   XK_Down,   spawn,          {.v = cmusplay } },
	{ 0|Mod1Mask,                   XK_Right,  spawn,          {.v = cmusnext } },
	{ 0|Mod1Mask,                   XK_Left,   spawn,          {.v = cmusprev } },
	{ 0|Mod1Mask,                   XK_s,      spawn,          {.v = cmusshuf } },
	{ 0|Mod1Mask,                   XK_r,      spawn,          {.v = cmusrept } },
	{ 0|ControlMask|Mod1Mask,       XK_l,      spawn,          {.v = lockscreen } },
	{ 0|ControlMask|Mod1Mask,       XK_s,      spawn,          {.v = suspend } },
	{ MODKEY,                       XK_e,      spawn,          {.v = emojitype } },
	{ MODKEY,                       XK_space,  spawn,          {.v = dmenucmd } },
	{ MODKEY,                       XK_Return, spawn,          {.v = termcmd } },