Add emacsdaemon

This commit is contained in:
Marco Thomas
2021-05-31 13:57:06 +02:00
parent bd659c8d6e
commit d371835c7a

View File

@@ -64,7 +64,8 @@ static const Layout layouts[] = {
#define TAGKEYS(KEY,TAG) \ #define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */ /* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
@@ -74,7 +75,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *browser[] = { "firefox-nightly", NULL }; static const char *browser[] = { "firefox-nightly", NULL };
static const char *discord[] = { "discord", NULL }; static const char *discord[] = { "discord", NULL };
static const char *dmenucmd[] = { "dmenu_run", NULL }; static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *emacs[] = { "emacs", NULL }; static const char *emacs_d[] = { "emacsclient", "-c", NULL };
static const char *files[] = { "thunar", NULL }; static const char *files[] = { "thunar", NULL };
static const char *flameshot[] = { "flameshot", "gui", NULL }; static const char *flameshot[] = { "flameshot", "gui", NULL };
static const char *lock[] = { "slock", NULL }; static const char *lock[] = { "slock", NULL };
@@ -102,7 +103,7 @@ static Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_e, spawn, {.v = files } }, { MODKEY, XK_e, spawn, {.v = files } },
{ MODKEY|ControlMask, XK_d, spawn, {.v = discord } }, { MODKEY|ControlMask, XK_d, spawn, {.v = discord } },
{ MODKEY|ControlMask, XK_e, spawn, {.v = emacs } }, { MODKEY|ControlMask, XK_e, spawn, {.v = emacs_d } },
{ MODKEY|ControlMask, XK_f, spawn, {.v = browser } }, { MODKEY|ControlMask, XK_f, spawn, {.v = browser } },
{ MODKEY|ControlMask, XK_p, spawn, {.v = pavu } }, { MODKEY|ControlMask, XK_p, spawn, {.v = pavu } },
{ MODKEY|ControlMask, XK_s, spawn, {.v = spotify } }, { MODKEY|ControlMask, XK_s, spawn, {.v = spotify } },