Просмотр исходного кода

~/.config/dwm: Use emacsclient

The first startup might be a little slower, but everything after that is
instantaneous.  Really neat!

(It seems I'm using emacs for writing now, and vim for most code
editing.  A little strange, but okay. :)
Lucas Stadler лет назад: 9
Родитель
Сommit
004ec6071b
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      .config/dwm/config.h

+ 3 - 1
.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 };
69
static const char *editorcmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", NULL };
70
static const char *writecmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", "--eval", "(find-recent-notes)", NULL };
70
71
71
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
72
static const char *volumedowncmd[] = { "amixer", "set", "Master", "5%-", NULL };
72
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
73
static const char *volumeupcmd[] = { "amixer", "set", "Master", "5%+", NULL };
113
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
114
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
114
115
115
	{ MODKEY,                       XK_e,      spawn,          { .v = editorcmd } },
116
	{ MODKEY,                       XK_e,      spawn,          { .v = editorcmd } },
117
	{ MODKEY,                       XK_w,      spawn,          { .v = writecmd } },
116
118
117
	{ 0,                            XF86XK_AudioLowerVolume, spawn, { .v = volumedowncmd } },
119
	{ 0,                            XF86XK_AudioLowerVolume, spawn, { .v = volumedowncmd } },
118
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },
120
	{ 0,                            XF86XK_AudioRaiseVolume, spawn, { .v = volumeupcmd } },