added symbols for different modes
This commit is contained in:
		@@ -8,8 +8,9 @@ const char *tags[] = { "dev", "work", "net", "fnord", NULL };
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define DEFMODE			dotile		/* dofloat */
 | 
					#define DEFMODE			dotile		/* dofloat */
 | 
				
			||||||
#define FLOATSYMBOL		"><>"
 | 
					#define FLOATSYMBOL		"><>"
 | 
				
			||||||
#define STACKPOS		StackRight	/* StackLeft, StackBottom */
 | 
					#define STACKPOS		StackRight	/* StackLeft */
 | 
				
			||||||
#define TILESYMBOL		"[]="
 | 
					#define BSTACKSYMBOL		"==="
 | 
				
			||||||
 | 
					#define VSTACKSYMBOL		"[]="
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
 | 
					#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
 | 
				
			||||||
#define NORMBGCOLOR		"#333333"
 | 
					#define NORMBGCOLOR		"#333333"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,8 @@ const char *tags[] = { "1", "2", "3", "4", "5", NULL };
 | 
				
			|||||||
#define DEFMODE			dotile /* dofloat */
 | 
					#define DEFMODE			dotile /* dofloat */
 | 
				
			||||||
#define FLOATSYMBOL		"><>"
 | 
					#define FLOATSYMBOL		"><>"
 | 
				
			||||||
#define STACKPOS		StackRight	/* StackLeft */
 | 
					#define STACKPOS		StackRight	/* StackLeft */
 | 
				
			||||||
#define TILESYMBOL		"[]="
 | 
					#define BSTACKSYMBOL		"==="
 | 
				
			||||||
 | 
					#define VSTACKSYMBOL		"[]="
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define FONT			"fixed"
 | 
					#define FONT			"fixed"
 | 
				
			||||||
#define NORMBGCOLOR		"#333366"
 | 
					#define NORMBGCOLOR		"#333366"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								draw.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								draw.c
									
									
									
									
									
								
							@@ -104,7 +104,9 @@ drawstatus(void) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	dc.w = bmw;
 | 
						dc.w = bmw;
 | 
				
			||||||
	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
 | 
						drawtext(arrange == dofloat ?
 | 
				
			||||||
 | 
							FLOATSYMBOL : stackpos == StackBottom ?
 | 
				
			||||||
 | 
								BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	x = dc.x + dc.w;
 | 
						x = dc.x + dc.w;
 | 
				
			||||||
	dc.w = textw(stext);
 | 
						dc.w = textw(stext);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								main.c
									
									
									
									
									
								
							@@ -129,7 +129,10 @@ setup(void) {
 | 
				
			|||||||
	dc.status[ColFG] = getcolor(STATUSFGCOLOR);
 | 
						dc.status[ColFG] = getcolor(STATUSFGCOLOR);
 | 
				
			||||||
	setfont(FONT);
 | 
						setfont(FONT);
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
	bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL);
 | 
						bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ?
 | 
				
			||||||
 | 
							textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL);
 | 
				
			||||||
 | 
						bmw = bmw > textw(FLOATSYMBOL) ?
 | 
				
			||||||
 | 
							bmw : textw(FLOATSYMBOL);
 | 
				
			||||||
	sx = sy = 0;
 | 
						sx = sy = 0;
 | 
				
			||||||
	sw = DisplayWidth(dpy, screen);
 | 
						sw = DisplayWidth(dpy, screen);
 | 
				
			||||||
	sh = DisplayHeight(dpy, screen);
 | 
						sh = DisplayHeight(dpy, screen);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user