ソースを参照

~/.config/dwm: Add stop after current song shortcut

Lucas Stadler 9 年 前
コミット
e17f9d5652
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      .config/dwm/config.h

+ 2 - 0
.config/dwm/config.h

@ -72,6 +72,7 @@ static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
72 72
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
73 73
static const char *volumetogglecmd[] = { "amixer", "set", "Master", "toggle", NULL };
74 74
static const char *musicplayercmd[] = { "quodlibet", NULL };
75
static const char *musicstopaftercmd[] = { "quodlibet", "--stop-after=t", NULL };
75 76
76 77
static const char *screenlockcmd[] = { "slock", NULL };
77 78
@ -119,6 +120,7 @@ static Key keys[] = {
119 120
120 121
	{ MODKEY|ShiftMask,             XK_m,                    view,  {.ui = 1 << 4} },
121 122
	{ MODKEY|ShiftMask,             XK_m,                    spawn, { .v = musicplayercmd } },
123
	{ ShiftMask,                    XF86XK_AudioPlay,        spawn, { .v = musicstopaftercmd } },
122 124
123 125
	{ MODKEY|ShiftMask,             XK_l,      spawn,          { .v = screenlockcmd } },
124 126
};