From 254990b4b9f5aa9693aa66d1c140907b2d0a12e4 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sat, 28 Mar 2015 00:56:36 -0300 Subject: Xft looks good enough, so pango is scrapped, also did some tweaks to config.h --- config.h | 9 +++++---- dwm | Bin 41328 -> 41328 bytes dwm.c | 2 +- dwm.o | Bin 62040 -> 62056 bytes 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index 7581d6e..1ffc596 100644 --- a/config.h +++ b/config.h @@ -7,16 +7,16 @@ static const char font[] = "DejaVu Sans:size=8"; #define NUMCOLORS 4 // need at least 3 static const char colors[NUMCOLORS][ColLast][8] = { // border foreground background - { "#3b3b3b", "#888888", "#0b0b0b" }, // 0 = normal - { "#000000", "#386dff", "#0b0b0b" }, // 1 = selected + { "#3b3b3b", "#303030", "#000000" }, // 0 = normal + { "#000000", "#386dff", "#000000" }, // 1 = selected { "#ffffff", "#808080", "#ffffaa" }, // 2 = urgent/warning { "#ffffff", "#808080", "#ffaaaa" }, // 3 = error }; static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ +static const unsigned int snap = 16; /* snap pixel */ static const Bool showbar = True; /* False means no bar */ static const Bool topbar = False; /* False means bottom bar */ -static const Bool showtitle = True; /* True means titles are shown on bar */ +static const Bool showtitle = False; /* True means titles are shown on bar */ /* Display modes of the tab bar: never shown, always shown, shown only in */ /* monocle mode in presence of several windows. */ @@ -141,5 +141,6 @@ static Button buttons[] = { { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, + { ClkTabBar, 0, Button1, focuswin, {0} }, }; diff --git a/dwm b/dwm index a83fa32..5cdafd8 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.c b/dwm.c index 3c9904f..37a8b6a 100644 --- a/dwm.c +++ b/dwm.c @@ -820,7 +820,7 @@ drawbar(Monitor *m) { dc.x = 0; for(i = 0; i < LENGTH(tags); i++) { dc.w = TEXTW(tags[i]); - col = (m->tagset[m->seltags] & 1 << i ? 1:(urg & 1 << i ? 2 : 0)); + col = (m->tagset[m->seltags] & 1 << i ? 1 : (urg & 1 << i ? 2 : 0)); drawtext(dc.drawable, tags[i], col, True); drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i, occ & 1 << i, col); dc.x += dc.w; diff --git a/dwm.o b/dwm.o index c7bbea1..bca1ae7 100644 Binary files a/dwm.o and b/dwm.o differ -- cgit v1.2.3