feat: applay split status patch
This commit is contained in:
		
							parent
							
								
									2a7e15ea63
								
							
						
					
					
						commit
						020235fb41
					
				
					 2 changed files with 2100 additions and 2116 deletions
				
			
		
							
								
								
									
										4148
									
								
								src/archy_dwm.c
									
										
									
									
									
								
							
							
						
						
									
										4148
									
								
								src/archy_dwm.c
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
					@ -16,49 +16,57 @@
 | 
				
			||||||
static const unsigned int borderpx = 1; /* border pixel of windows */
 | 
					static const unsigned int borderpx = 1; /* border pixel of windows */
 | 
				
			||||||
static const unsigned int gappx = 3;    /* gaps size between windows */
 | 
					static const unsigned int gappx = 3;    /* gaps size between windows */
 | 
				
			||||||
static const unsigned int snap = 32;    /* snap pixel */
 | 
					static const unsigned int snap = 32;    /* snap pixel */
 | 
				
			||||||
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
 | 
					static const unsigned int systraypinning =
 | 
				
			||||||
static const unsigned int systrayonleft = -1; /* 0: systray in the right corner, >0: systray on left of status text */
 | 
					    0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor
 | 
				
			||||||
 | 
					          X */
 | 
				
			||||||
 | 
					static const unsigned int systrayonleft =
 | 
				
			||||||
 | 
					    -1; /* 0: systray in the right corner, >0: systray on left of status text */
 | 
				
			||||||
static const unsigned int systrayspacing = 2; /* systray spacing */
 | 
					static const unsigned int systrayspacing = 2; /* systray spacing */
 | 
				
			||||||
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
 | 
					static const int systraypinningfailfirst =
 | 
				
			||||||
static const int showsystray = 1; /* 0 means no systray */
 | 
					    1; /* 1: if pinning fails, display systray on the first monitor, False:
 | 
				
			||||||
static const int showbar = 1;     /* 0 means no bar */
 | 
					          display systray on the last monitor*/
 | 
				
			||||||
static const int topbar = 0;      /* 0 means bottom bar */
 | 
					static const int showsystray = 1;    /* 0 means no systray */
 | 
				
			||||||
 | 
					static const int showbar = 1;        /* 0 means no bar */
 | 
				
			||||||
 | 
					static const int topbar = 0;         /* 0 means bottom bar */
 | 
				
			||||||
 | 
					static const int splitstatus = 1;    /* 1 for split status items */
 | 
				
			||||||
 | 
					static const char *splitdelim = ";"; /* Character used for separating status */
 | 
				
			||||||
static const char *fonts[] = {
 | 
					static const char *fonts[] = {
 | 
				
			||||||
    "monospace:size=6", "Noto Color Emoji:size=7",
 | 
					    "monospace:size=6", "Noto Color Emoji:size=7",
 | 
				
			||||||
    "Nerd Font Mono:size=10:antialias=true:hinting=true"};
 | 
					    "Nerd Font Mono:size=10:antialias=true:hinting=true"};
 | 
				
			||||||
static const char dmenufont[] = "monospace:size=8";
 | 
					static const char dmenufont[] = "monospace:size=8";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Colors - Gruvbox dark hard */
 | 
					/* Colors - Gruvbox dark hard */
 | 
				
			||||||
static const char norm_fg[] = "#D5C4A1"; // light2
 | 
					static const char norm_fg[] = "#D5C4A1";     // light2
 | 
				
			||||||
static const char norm_bg[] = "#1D2021"; // dark0_hard
 | 
					static const char norm_bg[] = "#1D2021";     // dark0_hard
 | 
				
			||||||
static const char norm_border[] = "#504945"; // dark2
 | 
					static const char norm_border[] = "#504945"; // dark2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char sel_fg[] = "#D79921"; // neutral_yellow
 | 
					static const char sel_fg[] = "#D79921";     // neutral_yellow
 | 
				
			||||||
static const char sel_bg[] = "#1D2021"; // dark0_hard
 | 
					static const char sel_bg[] = "#1D2021";     // dark0_hard
 | 
				
			||||||
static const char sel_border[] = "#7C6F64"; // dark4
 | 
					static const char sel_border[] = "#7C6F64"; // dark4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char urg_fg[] = "#D5C4A1"; // light4
 | 
					static const char urg_fg[] = "#D5C4A1";     // light4
 | 
				
			||||||
static const char urg_bg[] = "#FB4934"; // bright_red
 | 
					static const char urg_bg[] = "#FB4934";     // bright_red
 | 
				
			||||||
static const char urg_border[] = "#458588"; // neutral_blue
 | 
					static const char urg_border[] = "#458588"; // neutral_blue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char *colors[][3] = {
 | 
					static const char *colors[][3] = {
 | 
				
			||||||
        /*               fg           bg         border                         */
 | 
					    /*               fg           bg         border                         */
 | 
				
			||||||
        [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins
 | 
					    [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins
 | 
				
			||||||
        [SchemeSel]  = {sel_fg, sel_bg, sel_border},  // the focused win
 | 
					    [SchemeSel] = {sel_fg, sel_bg, sel_border},     // the focused win
 | 
				
			||||||
        [SchemeUrg] =  {urg_fg, urg_bg, urg_border},
 | 
					    [SchemeUrg] = {urg_fg, urg_bg, urg_border},
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Autostart programs
 | 
					// Autostart programs
 | 
				
			||||||
static const char *const autostart[] = {
 | 
					static const char *const autostart[] = {
 | 
				
			||||||
    // Start my build of slstatus
 | 
					    // Start my build of slstatus
 | 
				
			||||||
    "archy-slstatus", NULL,
 | 
					    "archy-slstatus", NULL, NULL /* terminate */
 | 
				
			||||||
    NULL                           /* terminate */
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* tagging */
 | 
					/* tagging */
 | 
				
			||||||
// static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX" };
 | 
					// static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII",
 | 
				
			||||||
// static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
 | 
					// "VIII", "IX" }; static const char *tags[] = { "", "", "", "",
 | 
				
			||||||
static const char *tags[] = {"www", "dev", "sys",  "chat", "lab", "vid", "mus", "vbox", "gfx",  ";"};
 | 
					// "", "", "", "", "" };
 | 
				
			||||||
 | 
					static const char *tags[] = {"www", "dev", "sys",  "chat", "lab",
 | 
				
			||||||
 | 
					                             "vid", "mus", "vbox", "gfx",  ";"};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const Rule rules[] = {
 | 
					static const Rule rules[] = {
 | 
				
			||||||
    /* xprop(1):
 | 
					    /* xprop(1):
 | 
				
			||||||
| 
						 | 
					@ -71,12 +79,16 @@ static const Rule rules[] = {
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    /* class      instance    title       tags mask     isfloating   monitor */
 | 
					    /* class      instance    title       tags mask     isfloating   monitor */
 | 
				
			||||||
    {"Gimp", NULL, NULL, 9 << 8, 1, -1}, // 0100000000 (gfx tag)
 | 
					    {"Gimp", NULL, NULL, 9 << 8, 1, -1}, // 0100000000 (gfx tag)
 | 
				
			||||||
    {"Tor Browser", "Navigator", NULL, 9 << 9, 0,-1}, // Open it in tag 10 (9 in array) (; tag)
 | 
					    {"Tor Browser", "Navigator", NULL, 9 << 9, 0,
 | 
				
			||||||
 | 
					     -1}, // Open it in tag 10 (9 in array) (; tag)
 | 
				
			||||||
    {"KeePassXC", "keepassxc", NULL, 9 << 9, 0, -1}, // 1000000000 (; tag)
 | 
					    {"KeePassXC", "keepassxc", NULL, 9 << 9, 0, -1}, // 1000000000 (; tag)
 | 
				
			||||||
    {"firefoxdeveloperedition", "Navigator", NULL, 1 << 0, 0,-1},                                   // 0000000001 (www tag)
 | 
					    {"firefoxdeveloperedition", "Navigator", NULL, 1 << 0, 0,
 | 
				
			||||||
 | 
					     -1}, // 0000000001 (www tag)
 | 
				
			||||||
    //{"discord", NULL, NULL, 4 << 1, 0, -1}, // 0000001000 (chat tag)
 | 
					    //{"discord", NULL, NULL, 4 << 1, 0, -1}, // 0000001000 (chat tag)
 | 
				
			||||||
    {"Virt-manager", "virt-manager", NULL, 9 << 7, 0,-1}, // 0010000000 (vbox tag)
 | 
					    {"Virt-manager", "virt-manager", NULL, 9 << 7, 0,
 | 
				
			||||||
    {"VirtualBox Manager", "VirtualBox Manager", NULL, 9 << 7, 0,1},                                              // 0010000000 (vbox tag)
 | 
					     -1}, // 0010000000 (vbox tag)
 | 
				
			||||||
 | 
					    {"VirtualBox Manager", "VirtualBox Manager", NULL, 9 << 7, 0,
 | 
				
			||||||
 | 
					     1},                                               // 0010000000 (vbox tag)
 | 
				
			||||||
    {NULL, "open.spotify.com", NULL, 8 << 3, 0, -1},   // 0001000000 (mus tag)
 | 
					    {NULL, "open.spotify.com", NULL, 8 << 3, 0, -1},   // 0001000000 (mus tag)
 | 
				
			||||||
    {"cmus", NULL, NULL, 8 << 3, 0, -1},               // 0001000000 (mus tag)
 | 
					    {"cmus", NULL, NULL, 8 << 3, 0, -1},               // 0001000000 (mus tag)
 | 
				
			||||||
    {"jetbrains-clion", NULL, NULL, 1 << 1, 0, -1},    // 0000000010 (dev tag)
 | 
					    {"jetbrains-clion", NULL, NULL, 1 << 1, 0, -1},    // 0000000010 (dev tag)
 | 
				
			||||||
| 
						 | 
					@ -94,7 +106,9 @@ static const Rule rules[] = {
 | 
				
			||||||
/* layout(s) */
 | 
					/* layout(s) */
 | 
				
			||||||
static const float mfact = 0.60f; /* factor of master area size [0.05..0.95] */
 | 
					static const float mfact = 0.60f; /* factor of master area size [0.05..0.95] */
 | 
				
			||||||
static const int nmaster = 1;     /* number of clients in master area */
 | 
					static const int nmaster = 1;     /* number of clients in master area */
 | 
				
			||||||
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
 | 
					static const int resizehints =
 | 
				
			||||||
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
 | 
					    1; /* 1 means respect size hints in tiled resizals */
 | 
				
			||||||
 | 
					static const int lockfullscreen =
 | 
				
			||||||
 | 
					    1; /* 1 will force focus on the fullscreen window */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // CONFIG_H
 | 
					#endif // CONFIG_H
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue