Adds binding for play/pause
This commit is contained in:
parent
8a9ab33762
commit
d07d47ccb8
1 changed files with 49 additions and 43 deletions
|
@ -1,5 +1,8 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
|
//The media and volume keys
|
||||||
|
#include "X11/XF86keysym.h"
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
|
@ -74,6 +77,8 @@ static const char *qutebrowser[] = { "qutebrowser", NULL };
|
||||||
|
|
||||||
static const char *date[] = { "datetime", NULL };
|
static const char *date[] = { "datetime", NULL };
|
||||||
|
|
||||||
|
static const char *playpause[] = { "playerctl", "play-pause", NULL };
|
||||||
|
|
||||||
#include "movestack.c"
|
#include "movestack.c"
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
@ -106,6 +111,7 @@ static Key keys[] = {
|
||||||
{ 0, XK_Print, spawn, {.v = fullscreenshot } },
|
{ 0, XK_Print, spawn, {.v = fullscreenshot } },
|
||||||
{ ControlMask, XK_Print, spawn, {.v = activescreenshot } },
|
{ ControlMask, XK_Print, spawn, {.v = activescreenshot } },
|
||||||
{ ShiftMask, XK_Print, spawn, {.v = selectscreenshot } },
|
{ ShiftMask, XK_Print, spawn, {.v = selectscreenshot } },
|
||||||
|
{ 0, XF86XK_AudioPlay, spawn, {.v = playpause } },
|
||||||
{ MODKEY|ShiftMask, XK_d, spawn, {.v = date } },
|
{ MODKEY|ShiftMask, XK_d, spawn, {.v = date } },
|
||||||
{ MODKEY|ShiftMask, XK_Insert, spawn, {.v = greenclip } },
|
{ MODKEY|ShiftMask, XK_Insert, spawn, {.v = greenclip } },
|
||||||
//Applications
|
//Applications
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue