chore: more rules and docs

This commit is contained in:
Solomon Laing 2026-04-14 10:12:47 +09:30
parent fed6dfe8b6
commit 481166edbc

View File

@ -40,7 +40,7 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class * WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title * WM_NAME(STRING) = title
*/ */
/* class instance title tags mask allowkill isfloating monitor */ /* class instance title tags mask allowkill isfloating monitor scratchpad char*/
{"firefox", NULL, NULL, 1 << 0, 0, 0, -1, 0}, {"firefox", NULL, NULL, 1 << 0, 0, 0, -1, 0},
{"thunderbird", NULL, NULL, 1 << 6, 1, 0, -1, 0}, {"thunderbird", NULL, NULL, 1 << 6, 1, 0, -1, 0},
{"org.mozilla.Thunderbird", NULL, NULL, 1 << 6, 1, 0, -1, 0}, {"org.mozilla.Thunderbird", NULL, NULL, 1 << 6, 1, 0, -1, 0},
@ -49,6 +49,7 @@ static const Rule rules[] = {
{"InputLeap", NULL, NULL, 1 << 8, 1, 1, -1, 0}, {"InputLeap", NULL, NULL, 1 << 8, 1, 1, -1, 0},
{"Nextcloud", NULL, NULL, 1 << 8, 1, 0, -1, 0}, {"Nextcloud", NULL, NULL, 1 << 8, 1, 0, -1, 0},
{"feishin", NULL, NULL, 1 << 2, 0, 0, -1, 0}, {"feishin", NULL, NULL, 1 << 2, 0, 0, -1, 0},
{"discord", NULL, NULL, 1 << 2, 1, 0, -1, 0},
{ NULL, NULL, "scratchpad", 0, 1, 0, -1, 's'} { NULL, NULL, "scratchpad", 0, 1, 0, -1, 's'}
}; };
@ -90,7 +91,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in
static const char *dmenucmd[] = {"dmenu_run", NULL}; static const char *dmenucmd[] = {"dmenu_run", NULL};
static const char *slockcmd[] = {"slock", NULL}; static const char *slockcmd[] = {"slock", NULL};
static const char *termcmd[] = {TERMINAL, "-t", "st", "-e", "tmux-worker", NULL}; static const char *termcmd[] = {TERMINAL, "-t", "st", "-e", "tmux-worker", NULL};
/*First arg only serves to match against key in rules*/ /*First arg only serves to match against scratchpad char in rules above */
static const char *scratchpadcmd[] = {"s", TERMINAL, "-t", "scratchpad", "-e", "tmux-worker", NULL}; static const char *scratchpadcmd[] = {"s", TERMINAL, "-t", "scratchpad", "-e", "tmux-worker", NULL};
#include "movestack.c" #include "movestack.c"