X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=3d424419906aae0e1fe2e171a9c0179968292aaf;hp=e66ace81b54ee0748b47cc02adfadf25a4e5270d;hb=4a67aa4aa8b2efe1654529a4db464608e7e0fd20;hpb=b1fe46c328a3aea5f18d6a0be14f69e57ee82172 diff --git a/dwm.c b/dwm.c index e66ace8..3d42441 100644 --- a/dwm.c +++ b/dwm.c @@ -811,10 +811,6 @@ drawbar(Monitor *m) { occ & 1 << i, urg & 1 << i); x += w; } - w = blw = TEXTW(m->ltsymbol); - drw_setscheme(drw, &scheme[SchemeNorm]); - drw_text(drw, x, 0, w, bh, m->ltsymbol, 0); - x += w; xx = x; if(m == selmon) { /* status is only drawn on selected monitor */ w = TEXTW(stext); @@ -1751,7 +1747,7 @@ kbspawn(const Arg *arg) { void spawn(const Arg *arg) { int tag = 0, i; - if(arg->v == termcmd) { + if(arg->v == termcmd || arg->v == runcmd) { for(i = 0; i < 32; ++i) { if(selmon->tagset[selmon->seltags] & (1 << i)) { tag = i; @@ -1759,7 +1755,7 @@ spawn(const Arg *arg) { } } WORKSPACE_NUMBER[17] = workspace_numbers_str[tag][0]; - WORKSPACE_NUMBER[18] = workspace_numbers_str[tag][1]; + WORKSPACE_NUMBER[18] = workspace_numbers_str[tag][1]; // 2nd digit or null } if(arg->v == dmenucmd) dmenumon[0] = '0' + selmon->num; @@ -1823,6 +1819,7 @@ tile(Monitor *m) { #define TAB_HEIGHT 19 #define TAB_PAD 7 +#define GUTTER_PX 8 void jason_layout(Monitor *m) { @@ -1858,7 +1855,7 @@ jason_layout(Monitor *m) { } else { mw = m->ww; } - right_width = m->ww - mw; + right_width = m->ww - mw - GUTTER_PX; tab_count = &(tab_counts[0]); tab_top = m->wy - (m->wh - (2 * (TAB_HEIGHT + TAB_PAD))) + TAB_HEIGHT; for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) { @@ -1866,14 +1863,14 @@ jason_layout(Monitor *m) { resize(c, m->wx, m->wy, mw, m->wh, False, 0); } else { if (c == vis_slave) { - resize(c, m->wx + mw, m->wy + TAB_HEIGHT + TAB_PAD, right_width, m->wh - 2 * (TAB_HEIGHT + TAB_PAD), False, base); + resize(c, m->wx + mw + GUTTER_PX, m->wy + TAB_HEIGHT + TAB_PAD, right_width, m->wh - 2 * (TAB_HEIGHT + TAB_PAD), False, base); tab_count = &(tab_counts[1]); tab_top = m->wy + m->wh - TAB_HEIGHT; cur_tab = 0; } else { // this function does not get called when focus changes // resize(c, m->wx + m->ww, m->wy, m->ww - mw, m->wh, False); - resize(c, m->wx + mw + right_width * cur_tab / (*tab_count), tab_top, right_width, m->wh - 2 * (TAB_HEIGHT + TAB_PAD), False, base); + resize(c, m->wx + mw + GUTTER_PX + right_width * cur_tab / (*tab_count), tab_top, right_width, m->wh - 2 * (TAB_HEIGHT + TAB_PAD), False, base); cur_tab += 1; } }