From 94c3e86ab849dafbc9df20f7e2f1441f205c2ecf Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:22:47 +1000 Subject: [PATCH 1/6] GAP bug in flipped layout --- setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.c b/setup.c index 5a782b8..f728f53 100644 --- a/setup.c +++ b/setup.c @@ -116,7 +116,7 @@ void setup() m->spots[j].h = height_spot1; if (j == SPOT1) continue; - m->spots[j].y = (SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1: y) + GAP; + m->spots[j].y = SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1 + GAP: y; m->spots[j].h = h - height_spot1 - GAP; m->spots[j].w = w - width_spot2 - GAP; if (j == SPOT3) continue; @@ -136,7 +136,7 @@ void setup() m->spots[j].h = h; if (j == SPOT1) continue; - m->spots[j].x = (SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1: x) + GAP; + m->spots[j].x = SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1 + GAP: x; m->spots[j].w = w - width_spot1 - GAP; m->spots[j].h = height_spot2; if (j == SPOT2) continue; From c70e83f465c4017dcfe5a2cb432692a2b2743dbe Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:41:02 +1000 Subject: [PATCH 2/6] docs --- README.md | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index d9ea59a..a98dffb 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ xoat *X Obstinate Asymmetric Tiler* * Designed for wide screens, including multi-head support. -* Static tiling; you get just three fixed tiles and windows never move automatically. +* Static tiling; you choose three fixed tiles at build-time. +* Windows never move between tiles or monitors automatically. * Bare minimum EWMH to support panels and [simpleswitcher](https://github.com/seanpringle/simpleswitcher). * A few keyboard controls for moving, focusing, cycling, closing, and finding windows. * Transient windows and dialogs are centered on parent, not tiled. @@ -13,23 +14,36 @@ xoat ### The Layout - --------------------------------- --------------------- - | | | | | - | | | | | - | | 2 | | | - | 1 | | | 1 | - | |---------| | | - | | | | | - | | 3 | | | - --------------------------------- | | - |-------------------| - | | | - | 3 | 2 | - | | | - --------------------- +* Layout is chosen at build time. +* Tile proportions can be adjusted. +* Can be flipped horizontally. -* Layout can be flipped horizontally to place tile 1 on the right. -* Layout rotates along with Xrandr rotated monitors. + --------------------------------- --------------------------------- + | | | | | | + | | | | | | + | | 2 | | 2 | | + | 1 | | | | 1 | + | |---------| |---------| | + | | | | | | + | | 3 | | 3 | | + --------------------------------- --------------------------------- + +* Xrandr rotated monitor also rotates layout (always 90 degrees, right). + + --------------------- --------------------- + | | | | | + | | | 3 | 2 | + | | | | | + | 1 | |-------------------| + | | | | + | | | | + | | | | + | | | | + |-------------------| | 1 | + | | | | | + | 3 | 2 | | | + | | | | | + --------------------- --------------------- ### Philosophy @@ -45,7 +59,7 @@ xoat 2. Medium monitoring-something apps 3. Small background-chat-music apps 4. Apps people should not use ;-) - * Want more tiles? Buy more monitors. + * Want more tiles? Buy more monitors! * Keyboard controls generally preferred over the mouse, when practical. * Faster. Muscle memory. * Click-to-focus model preferred over focus-follows-mouse. From 0e4204d5810c6c56071fd22b2b2e11be03bc734c Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:42:24 +1000 Subject: [PATCH 3/6] docs --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index a98dffb..ea04f52 100644 --- a/README.md +++ b/README.md @@ -18,32 +18,32 @@ xoat * Tile proportions can be adjusted. * Can be flipped horizontally. - --------------------------------- --------------------------------- - | | | | | | - | | | | | | - | | 2 | | 2 | | - | 1 | | | | 1 | - | |---------| |---------| | - | | | | | | - | | 3 | | 3 | | - --------------------------------- --------------------------------- + --------------------------------- --------------------------------- + | | | | | | + | | | | | | + | | 2 | | 2 | | + | 1 | | | | 1 | + | |---------| |---------| | + | | | | | | + | | 3 | | 3 | | + --------------------------------- --------------------------------- * Xrandr rotated monitor also rotates layout (always 90 degrees, right). - --------------------- --------------------- - | | | | | - | | | 3 | 2 | - | | | | | - | 1 | |-------------------| - | | | | - | | | | - | | | | - | | | | - |-------------------| | 1 | - | | | | | - | 3 | 2 | | | - | | | | | - --------------------- --------------------- + --------------------- --------------------- + | | | | | + | | | 3 | 2 | + | | | | | + | 1 | |-------------------| + | | | | + | | | | + | | | | + | | | | + |-------------------| | 1 | + | | | | | + | 3 | 2 | | | + | | | | | + --------------------- --------------------- ### Philosophy From fe235a20b9e637f420ceba49055374804ec20bf3 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:45:32 +1000 Subject: [PATCH 4/6] docs --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ea04f52..2edc4c9 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ xoat * Layout is chosen at build time. * Tile proportions can be adjusted. * Can be flipped horizontally. +* Xrandr rotated monitor also rotates layout (always 90 degrees, right). --------------------------------- --------------------------------- | | | | | | @@ -28,8 +29,6 @@ xoat | | 3 | | 3 | | --------------------------------- --------------------------------- -* Xrandr rotated monitor also rotates layout (always 90 degrees, right). - --------------------- --------------------- | | | | | | | | 3 | 2 | From 7a1185555e5beaa4ac492d62f98cb7504a5ba0bc Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:46:28 +1000 Subject: [PATCH 5/6] docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2edc4c9..d60fdf8 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ xoat * Can be flipped horizontally. * Xrandr rotated monitor also rotates layout (always 90 degrees, right). +... + --------------------------------- --------------------------------- | | | | | | | | | | | | From 8f9ee15b6f78e75cc01ec4cd13b7d62bda4a245b Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:48:40 +1000 Subject: [PATCH 6/6] docs --- xoat.1 | 5 +++++ xoat.md | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/xoat.1 b/xoat.1 index 5ca635d..befba7a 100644 --- a/xoat.1 +++ b/xoat.1 @@ -56,6 +56,11 @@ Cycle all windows in a tile. .RS .RE .TP +.B Mod4-[1-9] +Raise nth window in a tile. +.RS +.RE +.TP .B Mod4-Escape Close a window. .RS diff --git a/xoat.md b/xoat.md index c631177..d995153 100644 --- a/xoat.md +++ b/xoat.md @@ -44,6 +44,9 @@ Mod4-Tab Mod4-` (grave) : Cycle all windows in a tile. +Mod4-[1-9] +: Raise nth window in a tile. + Mod4-Escape : Close a window. @@ -95,4 +98,4 @@ xoat restart # AUTHOR -Sean Pringle \ No newline at end of file +Sean Pringle