Last active
August 29, 2015 14:02
-
-
Save markrwilliams/4ca140d5e59579f403fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void | |
bstack(Monitor *m) { | |
int w, h, mh, mx, tx, ty, tw; | |
unsigned int i, n; | |
Client *c; | |
for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); | |
if(n == 0) | |
return; | |
if(n > m->nmaster) { | |
mh = m->nmaster ? m->mfact * m->wh : 0; | |
tw = m->ww / (n - m->nmaster); | |
ty = m->wy + mh; | |
} | |
else { | |
mh = m->wh; | |
tw = m->ww; | |
ty = m->wy; | |
} | |
for(i = mx = 0, tx = m->wx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) { | |
if(i < m->nmaster) { | |
w = (m->ww - mx) / (MIN(n, m->nmaster) - i); | |
resize(c, m->wx + mx, m->wy, w - (2 * c->bw), mh - (2 * c->bw), False); | |
mx += WIDTH(c); | |
} | |
else { | |
h = m->wh - mh; | |
resize(c, tx, ty, tw - (2 * c->bw), h - (2 * c->bw), False); | |
if(tw != m->ww) | |
tx += WIDTH(c); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void | |
slide(const Arg *arg) | |
{ | |
Arg slid = {0}; | |
/* right = 1, left = 0*/ | |
if(arg->i) { | |
/* TAGMASK is a int in which the number of 1 bits is | |
* equal to the number of tags; so if we over shoot | |
* it, wrap to 0 */ | |
slid.ui = (selmon->tagset[selmon->seltags] << 1 > TAGMASK) ? \ | |
1 << 0 : selmon->tagset[selmon->seltags] << 1; | |
} | |
else { | |
/* our left-most tag is 1 << 0, or 1. 1 >> 1 = 0, so | |
* if we're going to hit that, wrap to the last | |
* tag. */ | |
slid.ui = (!(selmon->tagset[selmon->seltags] >> 1)) ? \ | |
1 << (LENGTH(tags) - 1) : selmon->tagset[selmon->seltags] >> 1; | |
} | |
view(&slid); | |
} |
shelltitle ""
caption always "%{=b .}%-w%{=r .} %n %{-}%+w"
# termcapinfo xterm|xterms|xs|rxvt ti@:te@
termcapinfo xterm|mlterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;mlterm\007'
defhstatus "^Et: ^En"
hardstatus off
background no
out_to_x no
out_to_console yes
TEXT
[${time %a %m/%d %I:%M%P}][batt:${battery_percent BAT0}%][cpu:$cpu%][mem:$memperc%|$swapperc%][wlan0:${wireless_essid wlan0}@${wireless_link_qual_perc wlan0}%]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
! yeah rxvt
URxvt.background: white
URxvt.foreground: black
URxvt.buffered: true
URxvt.scrollBar: false
URxvt.scrollWithBuffer: true
URxvt.saveLines: 1000
URxvt.font: xft:Inconsolata:size=12:antialias=true
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: conkeror
URxvt.matcher.button: 3
! emacs
emacs.waitForWM: false