Update config.def.h to use emacs more

This commit is contained in:
Alexander Rosenberg 2023-09-29 04:19:50 -07:00
parent a2f59253c5
commit ee9d4135e3
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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 } },