~ruther/guix-config

cf3d103de5a321bb285a1b13e1aaaf630829e290 — Rutherther 9 days ago c2a4689 main
feat(dwl): get rid of scratchpad mode
1 files changed, 10 insertions(+), 7 deletions(-)

M home/modules/ruther/home/dwl/config.h
M home/modules/ruther/home/dwl/config.h => home/modules/ruther/home/dwl/config.h +10 -7
@@ 242,8 242,10 @@ static const Key keys[] = {
	{ MODKEY|WLR_MODIFIER_SHIFT, Key_p,          spawn,      SHCMD("passmenu-totp") },
	{ MODKEY|WLR_MODIFIER_ALT,   Key_p,          spawn,      SHCMD("passmenu-multi") },

  { MODKEY,                    Key_s,          focusortogglematchingscratch, {.v = scratchpadcmd_spotify} },

	{ MODKEY,                    Key_c,          togglesticky,   {0} },
	{ MODKEY,                    Key_s,          entermode,      {.i = SCRATCHPADS} },
	/* { MODKEY,                    Key_s,          entermode,      {.i = SCRATCHPADS} }, */
	{ MODKEY,                    Key_a,          entermode,      {.i = PROGRAM_LAUNCHER} },

	/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */


@@ 260,12 262,12 @@ static const Key keys[] = {
#define EMACS(cmd) SHCMD("emacsclient -nc " cmd)
static const Modekey modekeys[] = {
	/* mode      modifier                  key                 function        argument */
	{ SCRATCHPADS, { 0, Key_s, focusortogglematchingscratch, {.v = scratchpadcmd_spotify} } },
	{ SCRATCHPADS, { 0, Key_s, entermode, {.i = NORMAL} } },
	{ SCRATCHPADS, { 0, Key_t, focusortogglematchingscratch, {.v = scratchpadcmd_foot} } },
	{ SCRATCHPADS, { 0, Key_t, entermode, {.i = NORMAL} } },
	{ SCRATCHPADS, { 0, Key_p, entermode, {.i = PASSTHROUGH} } },
	{ SCRATCHPADS, { 0, Key_Escape, entermode, {.i = NORMAL} } },
	/* { SCRATCHPADS, { 0, Key_s, focusortogglematchingscratch, {.v = scratchpadcmd_spotify} } }, */
	/* { SCRATCHPADS, { 0, Key_s, entermode, {.i = NORMAL} } }, */
	/* { SCRATCHPADS, { 0, Key_t, focusortogglematchingscratch, {.v = scratchpadcmd_foot} } }, */
	/* { SCRATCHPADS, { 0, Key_t, entermode, {.i = NORMAL} } }, */
	/* { SCRATCHPADS, { 0, Key_p, entermode, {.i = PASSTHROUGH} } }, */
	/* { SCRATCHPADS, { 0, Key_Escape, entermode, {.i = NORMAL} } }, */

	{ PROGRAM_LAUNCHER, { 0, Key_e, spawn, EMACS("")} },
	{ PROGRAM_LAUNCHER, { 0, Key_e, entermode, {.i = NORMAL} } },


@@ 274,6 276,7 @@ static const Modekey modekeys[] = {
	{ PROGRAM_LAUNCHER, { 0, Key_t, spawn, EMACS("--eval \"'(vterm)\"")} },
	{ PROGRAM_LAUNCHER, { 0, Key_t, entermode, {.i = NORMAL} } },

	{ PROGRAM_LAUNCHER, { 0, Key_p, entermode, {.i = PASSTHROUGH} } },
	{ PROGRAM_LAUNCHER, { 0, Key_Escape, entermode, {.i = NORMAL} } },

	{ PASSTHROUGH,      { MODKEY|WLR_MODIFIER_ALT, Key_Escape, entermode, {.i = NORMAL} } },