Sfoglia il codice sorgente

~/.config/dwm: Add shortcut for music player

Lucas Stadler 9 anni fa
parent
commit
b89c321755
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      .config/dwm/config.h

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

@ -32,6 +32,8 @@ static const Rule rules[] = {
32 32
	{ "Gimp",     NULL,       NULL,       0,            1,           -1 },
33 33
	//{ "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
34 34
35
	{ "Quodlibet", NULL,      NULL,       1 << 4,       0,           -1 },
36
35 37
	// float pinboard/popup windows
36 38
	//{ "Firefox",  NULL,       "",       0,       1,           -1 },
37 39
};
@ -67,6 +69,7 @@ static const char *termcmd[]  = { "/usr/bin/sakura", NULL };
67 69
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
68 70
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
69 71
static const char *volumetogglecmd[] = { "amixer", "set", "Master", "toggle", NULL };
72
static const char *musicplayercmd[] = { "quodlibet", NULL };
70 73
71 74
static const char *screenlockcmd[] = { "slock", NULL };
72 75
@ -110,6 +113,9 @@ static Key keys[] = {
110 113
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },
111 114
	{ 0,                            XF86XK_AudioMute       , spawn, { .v = volumetogglecmd } },
112 115
116
	{ MODKEY|ShiftMask,             XK_m,                    view,  {.ui = 1 << 4} },
117
	{ MODKEY|ShiftMask,             XK_m,                    spawn, { .v = musicplayercmd } },
118
113 119
	{ MODKEY|ShiftMask,             XK_l,      spawn,          { .v = screenlockcmd } },
114 120
};
115 121