From 8c4d353a989d44d7c95758ef3b5e21342783913a Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 18 May 2024 01:42:03 -0600 Subject: Improve dwm/emacs integration bindings --- .config/guix/modules/dwm/config.def.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.config/guix/modules/dwm/config.def.h') diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index 3ee81ee..657ed7f 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -2,7 +2,7 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int gappx = 8; /* gaps between windows */ +static const unsigned int gappx = 60; /* gaps between windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -74,7 +74,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ /* tools */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; +static const char *termcmd[] = { "emacsclient", "-nce", "(bd/contextual-shell)", NULL }; static const char *slockcmd[] = { "slock", NULL }; /* sound control */ static const char *togmute[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; @@ -87,17 +87,18 @@ static const char *mpcnext[] = { "mpc", "next", NULL }; static const char *flameselect[] = { "flameshot", "launcher", NULL }; static const char *flameall[] = { "flameshot", "full", NULL }; /* other applications */ -static const char *icecatcmd[] = { "icecat", NULL }; -static const char *wolfcmd[] = { "librewolf", NULL }; -static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; +static const char *icecmd[] = { "icecat", NULL }; +static const char *wolfcmd[] = { "librewolf", NULL }; +static const char *emacscmd[] = { "emacsclient", "-nce", "(switch-to-buffer nil)", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_x, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = emacscmd } }, - { MODKEY|ShiftMask, XK_b, spawn, {.v = icecatcmd } }, + { MODKEY, XK_Return, spawn, {.v = emacscmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_b, spawn, {.v = icecmd } }, { MODKEY|ShiftMask, XK_c, spawn, {.v = wolfcmd } }, { MODKEY|ShiftMask, XK_o, spawn, SHCMD("xdotool type $(grep -v '^#' /home/bdunahu/Personal/scripts/bookmarks.txt | dmenu -i -l 4 | awk '{print $NF}')") }, { MODKEY|ShiftMask, XK_p, spawn, SHCMD("passmenu --type") }, -- cgit v1.2.3