From ee9d4135e3f490d1d80929b0b81ef3861d016752 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 29 Sep 2023 04:19:50 -0700 Subject: [PATCH] Update config.def.h to use emacs more --- config.def.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 735cd3f..7ecfe33 100644 --- a/config.def.h +++ b/config.def.h @@ -66,10 +66,13 @@ static const Layout layouts[] = { /* commands */ static const char *runcmd[] = { "dmenu_run", NULL }; static const char *termcmd[] = { "kitty", "-1", NULL }; +static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; +static const char *diredcmd[] = { "emacsclient", "-nc", "--eval", "(dired \"~\")", NULL }; +static const char *mailcmd[] = { "emacsclient", "-nc", "--eval", "(mu4e)", NULL }; +static const char *khalcmd[] = { "kitty", "-1", "ikhal", NULL }; static const char *browsercmd[] = { "mullvad-browser", NULL }; static const char *lockcmd[] = { "loginctl", "lock-session", NULL }; static const char *passwdcmd[] = { "keepassxc", NULL }; -static const char *mailcmd[] = { "thunderbird", NULL }; static const char *volupcmd[] = { "pamixer", "-i", "1", NULL }; static const char *bigvolupcmd[] = { "pamixer", "-i", "5", NULL }; static const char *voldowncmd[] = { "pamixer", "-d", "1", NULL }; @@ -85,11 +88,14 @@ static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = runcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_e, spawn, {.v = emacscmd } }, + { MODKEY|ShiftMask, XK_d, spawn, {.v = diredcmd } }, + { MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_k, spawn, {.v = khalcmd } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_o, spawn, {.v = lockcmd } }, { MODKEY|ShiftMask, XK_p, spawn, {.v = passwdcmd } }, { MODKEY|ShiftMask, XK_n, spawn, {.v = selectsoundcmd } }, - { MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } }, { MODKEY, XK_u, spawn, {.v = closenotifycmd } }, { MODKEY|ShiftMask, XK_u, spawn, {.v = lastnotifycmd } },