Browse Source

~/.config/dwm: Add shortcut to spawn editor

Lucas Stadler 9 years ago
parent
commit
c32b715bbc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .config/dwm/config.h

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

66
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
66
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
67
static const char *termcmd[]  = { "/usr/bin/sakura", NULL };
67
static const char *termcmd[]  = { "/usr/bin/sakura", NULL };
68
68
69
static const char *editorcmd[] = { "emacs", NULL };
70
69
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
71
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
70
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
72
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
71
static const char *volumetogglecmd[] = { "amixer", "set", "Master", "toggle", NULL };
73
static const char *volumetogglecmd[] = { "amixer", "set", "Master", "toggle", NULL };
109
	TAGKEYS(                        XK_9,                      8)
111
	TAGKEYS(                        XK_9,                      8)
110
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
112
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
111
113
114
	{ MODKEY,                       XK_e,      spawn,          { .v = editorcmd } },
115
112
	{ 0,                            XF86XK_AudioLowerVolume, spawn, { .v = volumedowncmd } },
116
	{ 0,                            XF86XK_AudioLowerVolume, spawn, { .v = volumedowncmd } },
113
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },
117
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },
114
	{ 0,                            XF86XK_AudioMute       , spawn, { .v = volumetogglecmd } },
118
	{ 0,                            XF86XK_AudioMute       , spawn, { .v = volumetogglecmd } },