swallow - Patch

This commit is contained in:
riomoo 2025-02-15 09:13:59 -05:00
parent d19bb915e1
commit d76176d770
Signed by: riomoo
SSH key fingerprint: SHA256:IidVcrEqw4r/6zlIASTgxRmFBmyRiZ/31wjlNkFzVG0
5 changed files with 702 additions and 26 deletions

View file

@ -3,10 +3,10 @@
/* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int swallowfloating = 1; /* 1 means swallow floating windows by default */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
/*static const char *fonts[] = { "monospace:size=16" };
*/
/*static const char *fonts[] = { "monospace:size=16" }; */
static const char *fonts[] = {"Mononoki Nerd Font:size=16:antialias=true:autohint=true",
"Hack:size=14:antialias=true:autohint=true",
"JoyPixels:size=16:antialias=true:autohint=true"};
@ -18,12 +18,12 @@ typedef struct {
const void *cmd;
} Sp;
const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ls", NULL };
const char *spcmd3[] = {"keepassxc", NULL };
const char *spcmd2[] = {"st", "-n", "spfm", "-g", "120x34", "-e", "tmux", NULL };
const char *spcmd3[] = {"passed", NULL };
static Sp scratchpads[] = {
/* name cmd */
{"spterm", spcmd1},
{"spranger", spcmd2},
{"spfm", spcmd2},
{"keepassxc", spcmd3},
};
@ -37,18 +37,19 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 1 << 6, 0, -1 },
{ NULL, NULL, "pulsemixer", 0, 1, -1 },
{ "waterfox", NULL, NULL, 1, 0, -1 },
{ "Element", NULL, NULL, 1 << 8, 0, -1 },
{ NULL, NULL, "LibreWolf", 1 << 0, 0, -1 },
{ NULL, NULL, "Waterfox", 1 << 0, 0, -1 },
{ NULL, NULL, "Discord", 1 << 8, 0, -1 },
{ "mpv", NULL, NULL, 1 << 5, 1, -1 },
{ NULL, "spterm", NULL, SPTAG(0), 1, -1 },
{ NULL, "spfm", NULL, SPTAG(1), 1, -1 },
{ NULL, "keepassxc", NULL, SPTAG(2), 0, -1 },
/* class instance title tags mask isfloating isterminal noswallow monitor */
{ NULL, NULL, "st", 0, 0, 1, 0, -1 },
{ "Gimp", NULL, NULL, 1 << 6, 1, 0, 0, -1 },
{ "Element", NULL, NULL, 1 << 8, 0, 0, 0, -1 },
{ NULL, NULL, "LibreWolf", 1 << 0, 0, 0, 0, -1 },
{ NULL, NULL, "Waterfox", 1 << 0, 0, 0, 0, -1 },
{ NULL, NULL, "Discord", 1 << 8, 0, 0, 0, -1 },
{ "mpv", NULL, NULL, 1 << 5, 1, 0, 0, -1 },
{ "xterm-256color", "spterm", NULL, SPTAG(0), 1, 1, 0, -1 },
{ "xterm-256color", "spfm", NULL, SPTAG(1), 1, 1, 0, -1 },
{ "KeePassXC", NULL, NULL, SPTAG(2), 0, 0, 0, -1 },
{ NULL, NULL, "pulsemixer", 0, 1, 1, 0, -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
/* layout(s) */