From 684be21d9a09a33aabca748f38038cd408e6b91e Mon Sep 17 00:00:00 2001 From: odweta Date: Wed, 3 Jun 2026 18:12:12 +0200 Subject: [PATCH] add: signal-desktop scratchpad --- dwm/config/keybinds.h | 3 ++- dwm/config/rules.h | 1 + dwm/config/scratchpads.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dwm/config/keybinds.h b/dwm/config/keybinds.h index c52be26..464ff58 100644 --- a/dwm/config/keybinds.h +++ b/dwm/config/keybinds.h @@ -8,7 +8,7 @@ * (+ however many Fn keys you have) * * taken keys: - * space Return m w, h j k l q ShiftMask|f, comma ShiftMask|comma period ShiftMask|period, ShiftMask|Return f p n ShiftMask|m, [1-9], ShiftMask|e + * space Return m w, h j k l q ShiftMask|f, comma ShiftMask|comma period ShiftMask|period, ShiftMask|Return f p n ShiftMask|m s, [1-9], ShiftMask|e */ static const Key keys[] = { /* modifier key function argument */ @@ -35,6 +35,7 @@ static const Key keys[] = { { MODKEY, XK_p, togglescratch, {.ui = 2 } }, // keepass { MODKEY, XK_n, togglescratch, {.ui = 3 } }, // nmtui { MODKEY|ShiftMask, XK_m, togglescratch, {.ui = 4 } }, // music + { MODKEY, XK_s, togglescratch, {.ui = 5 } }, // signal // tag movement TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) diff --git a/dwm/config/rules.h b/dwm/config/rules.h index 4ba8251..2eab07c 100644 --- a/dwm/config/rules.h +++ b/dwm/config/rules.h @@ -11,6 +11,7 @@ static const Rule rules[] = { { NULL, "keepassxc", NULL, SPTAG(2), 1, -1 }, { NULL, "spnmtui", NULL, SPTAG(3), 1, -1 }, { NULL, "spmusic", NULL, SPTAG(4), 1, -1 }, + { NULL, "signal", NULL, SPTAG(5), 1, -1 }, { "firefox", NULL, NULL, 1 << 1, 0, -1 }, { "jetbrains-studio", "jetbrains-studio", NULL, 1 << 0, 0, -1 }, }; diff --git a/dwm/config/scratchpads.h b/dwm/config/scratchpads.h index 49f750e..f93ce0f 100644 --- a/dwm/config/scratchpads.h +++ b/dwm/config/scratchpads.h @@ -10,6 +10,7 @@ const char *spcmd1[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "lf", NULL }; const char *spcmd2[] = {"keepassxc", NULL }; const char *spcmd3[] = {"st", "-n", "spnmtui", "-g", "140x30", "-e", "nmtui", NULL }; const char *spcmd4[] = {"st", "-n", "spmusic", "-g", "140x30", "-e", "ncmpcpp", NULL }; +const char *spcmd5[] = {"signal-desktop", NULL }; static Sp scratchpads[] = { /* name cmd */ @@ -18,5 +19,6 @@ static Sp scratchpads[] = { {"spkeepassxc", spcmd2}, {"spnmtui", spcmd3}, {"spmusic", spcmd4}, + {"spsignal", spcmd5}, };