Adds binding for play/pause

keyboard
Jonathan Hodgson 6 years ago
parent 8a9ab33762
commit d07d47ccb8
  1. 6
      config.def.h

@ -1,5 +1,8 @@
/* See LICENSE file for copyright and license details. */
//The media and volume keys
#include "X11/XF86keysym.h"
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
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 *playpause[] = { "playerctl", "play-pause", NULL };
#include "movestack.c"
static Key keys[] = {
/* modifier key function argument */
@ -106,6 +111,7 @@ static Key keys[] = {
{ 0, XK_Print, spawn, {.v = fullscreenshot } },
{ ControlMask, XK_Print, spawn, {.v = activescreenshot } },
{ ShiftMask, XK_Print, spawn, {.v = selectscreenshot } },
{ 0, XF86XK_AudioPlay, spawn, {.v = playpause } },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = date } },
{ MODKEY|ShiftMask, XK_Insert, spawn, {.v = greenclip } },
//Applications

Loading…
Cancel
Save