sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9a1e105982a4005b2d3dac6fde296a66f3326c9a
parent ed32ab8516670b9692c11ce96dba52e8c8981620
Author: Doomicide <dm@archlinux.info>
Date:   Thu,  6 Dec 2012 21:11:42 +0100

added patch-section and autohide-patch for tabbed

Diffstat:
Dtools.suckless.org/tabbed.md | 20--------------------
Atools.suckless.org/tabbed/index.md | 20++++++++++++++++++++
Atools.suckless.org/tabbed/patches/autohide.diff | 13+++++++++++++
Atools.suckless.org/tabbed/patches/index.md | 29+++++++++++++++++++++++++++++
Atools.suckless.org/tabbed/patches/tabbed-0.4.1-autohide.diff | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Rtools.suckless.org/tabbed.png -> tools.suckless.org/tabbed/tabbed.png | 0
6 files changed, 112 insertions(+), 20 deletions(-)

diff --git a/tools.suckless.org/tabbed.md b/tools.suckless.org/tabbed.md @@ -1,20 +0,0 @@ -![tabbed running nyancat](/tabbed.png) - -tabbed -====== -Simple generic tabbed fronted to xembed aware applications, originally designed -for [surf](http://surf.suckless.org) but also usable with many other -application, i.e. [st](http://st.suckless.org), [uzbl](http://uzbl.org), -[urxvt](http://software.schmorp.de/pkg/rxvt-unicode) and -[xterm](http://invisible-island.net/xterm/) - -Development ------------ -You can [browse](http://git.suckless.org/tabbed) its source code repository or get a copy using the following command: - - git clone http://git.suckless.org/tabbed - -Download --------- -* [tabbed-0.4.1](http://dl.suckless.org/tools/tabbed-0.4.1.tar.gz) (20120707) - diff --git a/tools.suckless.org/tabbed/index.md b/tools.suckless.org/tabbed/index.md @@ -0,0 +1,20 @@ +![tabbed running nyancat](tabbed.png) + +tabbed +====== +Simple generic tabbed fronted to xembed aware applications, originally designed +for [surf](http://surf.suckless.org) but also usable with many other +application, i.e. [st](http://st.suckless.org), [uzbl](http://uzbl.org), +[urxvt](http://software.schmorp.de/pkg/rxvt-unicode) and +[xterm](http://invisible-island.net/xterm/) + +Development +----------- +You can [browse](http://git.suckless.org/tabbed) its source code repository or get a copy using the following command: + + git clone http://git.suckless.org/tabbed + +Download +-------- +* [tabbed-0.4.1](http://dl.suckless.org/tools/tabbed-0.4.1.tar.gz) (20120707) + diff --git a/tools.suckless.org/tabbed/patches/autohide.diff b/tools.suckless.org/tabbed/patches/autohide.diff @@ -0,0 +1,13 @@ +Autohide +======== + +This patch hides the tab bar if only one tab is open. + +Download +-------- +* [tabbed-0.4.1-autohide.diff](tabbed-0.4.1-autohide.diff) + +Author +------ +* original author unknown +* 0.4.1 doom - <dm@archlinux.info> diff --git a/tools.suckless.org/tabbed/patches/index.md b/tools.suckless.org/tabbed/patches/index.md @@ -0,0 +1,29 @@ +Patches +======= + +diff generation +--------------- +For git users: + + cd dmenu-directory + hg diff > dmenu-X.Y-yourpatchname.diff + +For tarballs: + + cd modified-dmenu-directory/.. + diff -up original-dmenu-directory modified-dmenu-directory > dmenu-X.Y-yourpatchname.diff + +where `X.Y` is a dmenu tag name or version number. + + +patch application +----------------- +For git users: + + cd dmenu-directory + hg patch path/to/patch.diff + +For tarballs: + + cd dmenu-directory + patch -p1 < path/to/patch.diff diff --git a/tools.suckless.org/tabbed/patches/tabbed-0.4.1-autohide.diff b/tools.suckless.org/tabbed/patches/tabbed-0.4.1-autohide.diff @@ -0,0 +1,50 @@ +diff -up ../tabbed-0.4.1/tabbed.c ./tabbed.c +--- ../tabbed-0.4.1/tabbed.c 2012-08-20 09:15:07.000000000 +0200 ++++ ./tabbed.c 2012-11-08 20:02:21.048334570 +0100 +@@ -142,7 +142,7 @@ static void (*handler[LASTEvent]) (const + [MapRequest] = maprequest, + [PropertyNotify] = propertynotify, + }; +-static int bh, wx, wy, ww, wh; ++static int vbh, bh, wx, wy, ww, wh; + static unsigned int numlockmask = 0; + static Bool running = True, nextfocus, doinitspawn = True; + static Display *dpy; +@@ -283,7 +283,7 @@ die(const char *errstr, ...) { + void + drawbar() { + unsigned long *col; +- int n, width; ++ int n, width, nbh; + Client *c, *fc; + char *name = NULL; + +@@ -292,10 +292,18 @@ drawbar() { + dc.w = ww; + XFetchName(dpy, win, &name); + drawtext(name ? name : "", dc.norm); +- XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, ww, bh, 0, 0); ++ XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, ww, vbh, 0, 0); + XSync(dpy, False); + return; + } ++ nbh = clients->next ? vbh : 0; ++ if (nbh != bh) { ++ bh = nbh; ++ for (c = clients; c; c = c->next) ++ XMoveResizeWindow(dpy, c->win, 0, bh, ww, wh - bh); ++ } ++ if (bh == 0) ++ return; + width = ww; + for(c = clients; c; c = c->next) + c->tabx = -1; +@@ -736,7 +744,7 @@ setup(void) { + screen = DefaultScreen(dpy); + root = RootWindow(dpy, screen); + initfont(font); +- bh = dc.h = dc.font.height + 2; ++ vbh = dc.h = dc.font.height + 2; + /* init atoms */ + wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); + wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); diff --git a/tools.suckless.org/tabbed.png b/tools.suckless.org/tabbed/tabbed.png Binary files differ.