From d371835c7ae9c3bf0c231e1352a663d47b89b348 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 31 May 2021 13:57:06 +0200 Subject: [PATCH] Add emacsdaemon --- config.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index e449c1e..1865b08 100644 --- a/config.h +++ b/config.h @@ -64,7 +64,8 @@ static const Layout layouts[] = { #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.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 */ #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 *discord[] = { "discord", 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 *flameshot[] = { "flameshot", "gui", NULL }; static const char *lock[] = { "slock", NULL }; @@ -102,7 +103,7 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_e, spawn, {.v = files } }, { 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_p, spawn, {.v = pavu } }, { MODKEY|ControlMask, XK_s, spawn, {.v = spotify } },