From cf3d103de5a321bb285a1b13e1aaaf630829e290 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 1 Feb 2026 11:55:55 +0100 Subject: [PATCH] feat(dwl): get rid of scratchpad mode --- home/modules/ruther/home/dwl/config.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/home/modules/ruther/home/dwl/config.h b/home/modules/ruther/home/dwl/config.h index 6808aa163df25b861e309f562b63b2f232a384c1..f06c9ba23504acd4b072e15e176439369a9921af 100644 --- a/home/modules/ruther/home/dwl/config.h +++ b/home/modules/ruther/home/dwl/config.h @@ -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} } },