add: signal-desktop scratchpad

This commit is contained in:
odweta
2026-06-03 18:12:12 +02:00
parent 0ff5b5d554
commit 684be21d9a
3 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -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)
+1
View File
@@ -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 },
};
+2
View File
@@ -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},
};