Added mpc play/pause keybindings

This commit is contained in:
jon
2020-09-20 10:49:03 -05:00
parent b313ef7f43
commit 5cab3cf6c1

View File

@@ -81,6 +81,8 @@ static const char *lockcmd[] = { "slock", NULL };
static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
static const char *vol_up[] = { "volume_up.sh", NULL};
static const char *vol_down[] = { "volume_down.sh", NULL};
static const char *mpc_play[] = { "mpc_play", NULL};
static const char *mpc_pause[] = { "mpc_pause", NULL};
static const char *calccmd[] = { "speedcrunch", NULL};
static Key keys[] = {
@@ -124,10 +126,12 @@ static Key keys[] = {
TAGKEYS( XK_9, 8)
//{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY|ControlMask, XK_q, quit, {0} },
{ 0, XK_Print, spawn, {.v = prtscrcmd } },
{ 0, XK_Print, spawn, {.v = prtscrcmd } },
{ MODKEY, XK_F9, spawn, {.v = mpc_pause } },
{ MODKEY, XK_F10, spawn, {.v = mpc_play } },
{ MODKEY, XK_F11, spawn, {.v = vol_down } },
{ MODKEY, XK_F12, spawn, {.v = vol_up } },
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },
};
/* button definitions */