about summary refs log tree commit diff stats
path: root/config.arg.h
Commit message (Collapse)AuthorAgeFilesLines
* using iso10646 explicitely in arg's config.harg@mig292006-11-211-1/+1
|
* nah reverting to my prev style, that's really the best 2.2arg@mig292006-11-181-6/+6
|
* applying aluminium style for arg's config.harg@mig292006-11-181-6/+6
|
* using a more blue-ish color...arg@mig292006-11-081-2/+2
|
* making the selected color more lightningarg@mig292006-11-081-1/+1
|
* renamed resizecol into resizemaster 2.1arg@mig292006-10-311-2/+2
|
* in a 1920x1200 setup 40 pixels of snap value are much better than 20arg@mig292006-10-301-1/+1
|
* added screen-border snapping in floating mode, feels quite wellarg@mig292006-10-301-0/+1
|
* stupid urxvt needs bg to highlight selections in a sane way, though that ↵arg@mig292006-10-271-1/+1
| | | | makes sense to some extend
* applied sander's config.*h nitpick patcharg@mig292006-10-261-4/+4
|
* forgot to use -tr, which actually prevents the ugly flicker (using xsetroot ↵arg@mig292006-10-261-1/+1
| | | | -solid black as root window pixmap to make this work nicely)
* using MASTER 600 again, it is definately better, and using urxvtc for the ↵arg@mig292006-10-261-2/+2
| | | | moment (it doesn't flickers on refreshes, but this is not because of Marc Lehmann, it is because of the original rxvt code)
* changing MASTER in config.arg.h from 600 to 550 per thousandarg@mig292006-10-261-1/+1
|
* my new 1920x1200 Z61p arrived, now I can use terminus in a sane way...arg@mig292006-10-261-1/+1
|
* using lsx instead of Jukka's shell constructAnselm R. Garbe2006-10-131-4/+3
|
* code polishing, removed unnecessary newlinesAnselm R. Garbe2006-10-061-2/+1
|
* removed the stack position stuffAnselm R. Garbe2006-10-051-7/+4
|
* changing MASTER value from percent into per millAnselm R. Garbe2006-10-051-3/+3
|
* keep master ratio on resizecol -> arrangeAnselm R. Garbe2006-10-051-2/+2
|
* using ff tiled again, seems to work perfectly with new bottom stackAnselm R. Garbe2006-09-291-1/+1
|
* added symbols for different modesAnselm R. Garbe2006-09-291-2/+3
|
* removed useless updatemasterAnselm R. Garbe2006-09-291-1/+1
|
* removed the direction flippingAnselm R. Garbe2006-09-291-2/+0
|
* small changeAnselm R. Garbe2006-09-291-1/+1
|
* added the new dotile as described on mlAnselm R. Garbe2006-09-291-0/+2
|
* first step to a more flexible dotile() algorithmAnselm R. Garbe2006-09-291-2/+4
|
* small changearg@mmvi2006-09-261-2/+2
|
* small fixarg@mmvi2006-09-261-1/+1
|
* changed order of colordefs in config.h's, changed config.arg.h to fit to new ↵arg@mmvi2006-09-261-4/+5
| | | | dmenu
* slight change to config.arg.h (I use ff floating)arg@mmvi2006-09-221-1/+1
|
* implemented the maximization as I described on the mailinglist, this feels ↵arg@mmvi2006-09-221-1/+0
| | | | better to me.
* fixed executing of dmenu output to handle args correctlyAnselm R. Garbe2006-09-121-1/+1
|
* ach ich will auch Alt-sAnselm R. Garbe2006-09-051-0/+1
|
* renamed resizetile into resizecolAnselm R. Garbe2006-09-051-1/+1
|
* s/growcol/resizetile/gAnselm R. Garbe2006-09-051-1/+1
|
* I really need column growing, now pushing upstreamAnselm R. Garbe2006-09-051-0/+1
|
* changed shortcut into Mod1-0Anselm R. Garbe2006-08-311-1/+1
|
* added viewall to mainstream (only Ross Mohns version, not the toggle)Anselm R. Garbe2006-08-311-0/+1
|
* small fix in config.arg.hAnselm R. Garbe2006-08-301-3/+3
|
* now using Salmi's menu commandAnselm R. Garbe2006-08-301-2/+3
|
* removed crappy variablesAnselm R. Garbe2006-08-281-0/+4
|
* changed config.arg.h - I really need the 4th tagAnselm R. Garbe2006-08-281-1/+1
|
* oh frking dear big font...Anselm R. Garbe2006-08-251-1/+1
|
* term enlightenedAnselm R. Garbe2006-08-251-1/+1
|
* switching to darker colorscheme with larger fontAnselm R. Garbe2006-08-251-7/+7
|
* patched arg.hAnselm R. Garbe2006-08-251-1/+1
|
* new stuffAnselm R. Garbe2006-08-251-1/+1
|
* switching to dark colors againAnselm R. Garbe2006-08-251-6/+6
|
* changed order of optionsAnselm R. Garbe2006-08-251-2/+2
|
* trying a different configurationAnselm R. Garbe2006-08-251-2/+2
|
ss="n">next = c->next; if(c->next) c->next->prev = c->prev; if(c == clients) clients = c->next; c->next = c->prev = NULL; } void dofloat(void) { Client *c; for(c = clients; c; c = c->next) { if(isvisible(c)) { resize(c, True, TopLeft); } else ban(c); } if(!sel || !isvisible(sel)) { for(c = stack; c && !isvisible(c); c = c->snext); focus(c); } restack(); } void dotile(void) { unsigned int i, n, mpx, stackw, stackh, th; Client *c; for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) n++; mpx = (sw * master) / 1000; stackw = sw - mpx; stackh = sh - bh; th = stackh; if(n > 1) th /= (n - 1); for(i = 0, c = clients; c; c = c->next) if(isvisible(c)) { if(c->isfloat) { resize(c, True, TopLeft); continue; } c->ismax = False; c->x = sx; c->y = sy + bh; if(n == 1) { /* only 1 window */ c->w = sw - 2 * BORDERPX; c->h = sh - 2 * BORDERPX - bh; } else if(i == 0) { /* master window */ c->w = mpx - 2 * BORDERPX; c->h = sh - bh - 2 * BORDERPX; } else { /* tile window */ c->x += mpx; c->w = stackw - 2 * BORDERPX; if(th > bh) { c->y = sy + (i - 1) * th + bh; if(i + 1 == n) c->h = sh - c->y - 2 * BORDERPX; else c->h = th - 2 * BORDERPX; } else /* fallback if th < bh */ c->h = stackh - 2 * BORDERPX; } resize(c, False, TopLeft); i++; } else ban(c); if(!sel || !isvisible(sel)) { for(c = stack; c && !isvisible(c); c = c->snext); focus(c); } restack(); } void focusnext(Arg *arg) { Client *c; if(!sel) return; if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { focus(c); restack(); } } void focusprev(Arg *arg) { Client *c; if(!sel) return; if(!(c = getprev(sel->prev))) { for(c = clients; c && c->next; c = c->next); c = getprev(c); } if(c) { focus(c); restack(); } } Bool isvisible(Client *c) { unsigned int i; for(i = 0; i < ntags; i++) if(c->tags[i] && seltag[i]) return True; return False; } void resizecol(Arg *arg) { unsigned int n; Client *c; for(n = 0, c = clients; c; c = c->next) if(isvisible(c) && !c->isfloat) n++; if(!sel || sel->isfloat || n < 2 || (arrange == dofloat)) return; if(sel == getnext(clients)) { if(master + arg->i > 950 || master + arg->i < 50) return; master += arg->i; } else { if(master - arg->i > 950 || master - arg->i < 50) return; master -= arg->i; } arrange(); } void restack(void) { Client *c; XEvent ev; if(!sel) { drawstatus(); return; } if(sel->isfloat || arrange == dofloat) { XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); } if(arrange != dofloat) { if(!sel->isfloat) { XLowerWindow(dpy, sel->twin); XLowerWindow(dpy, sel->win); } for(c = nexttiled(clients); c; c = nexttiled(c->next)) { if(c == sel) continue; XLowerWindow(dpy, c->twin); XLowerWindow(dpy, c->win); } } drawall(); XSync(dpy, False); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } void togglemode(Arg *arg) { arrange = (arrange == dofloat) ? dotile : dofloat; if(sel) arrange(); else drawstatus(); } void toggleview(Arg *arg) { unsigned int i; seltag[arg->i] = !seltag[arg->i]; for(i = 0; i < ntags && !seltag[i]; i++); if(i == ntags) seltag[arg->i] = True; /* cannot toggle last view */ reorder(); arrange(); } void view(Arg *arg) { unsigned int i; for(i = 0; i < ntags; i++) seltag[i] = False; seltag[arg->i] = True; reorder(); arrange(); } void viewall(Arg *arg) { unsigned int i; for(i = 0; i < ntags; i++) seltag[i] = True; reorder(); arrange(); } void zoom(Arg *arg) { unsigned int n; Client *c; if(!sel) return; if(sel->isfloat || (arrange == dofloat)) { togglemax(sel); return; } for(n = 0, c = clients; c; c = c->next) if(isvisible(c) && !c->isfloat) n++; if(n < 2 || (arrange == dofloat)) return; if((c = sel) == nexttiled(clients)) if(!(c = nexttiled(c->next))) return; detach(c); if(clients) clients->prev = c; c->next = clients; clients = c; focus(c); arrange(); }