From 6a3c6a6ef8cf1311d2068609bcf82d9dd3a4a471 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 01:12:26 +1000 Subject: [PATCH 1/6] readable default title text --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.h b/config.h index 18daefa..905ffd6 100644 --- a/config.h +++ b/config.h @@ -7,7 +7,7 @@ #define BORDER_ABOVE "Dark Green" // Title bar xft font -#define TITLE "sans-10" +#define TITLE "sans:bold:size=10" #define TITLE_BLUR "Black" #define TITLE_FOCUS "White" #define TITLE_ELLIPSIS 30 From 9489269447717d42325b8af1dabf0c7a420afc7e Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 01:26:18 +1000 Subject: [PATCH 2/6] docs --- README.md | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 781d7a4..b3662a5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ xoat * Designed for wide screens, including multi-head support. * Static tiling; you get just three fixed tiles and windows never move automatically. -* Bare minimum EWMH to support panels and [simpleswitcher](https://github.com/seanpringle/simpleswitcher) +* 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. * Splash screens and notification popups are displayed as requested, not tiled. @@ -13,15 +13,24 @@ xoat ### The Layout - -------------------------------- - | | | - | | | - | | 2 | - | 1 | | - | |---------| - | | | - | | 3 | - -------------------------------- + -------------------------------- ------------------- + | | | | | + | | | | | + | | 2 | | | + | 1 | | | 1 | + | |---------| | | + | | | | | + | | 3 | | | + -------------------------------- | | + |-----------------| + | | | + | | | + | 3 | 2 | + | | | + ------------------- + +* Layout can be flipped horizontally to place tile 1 on the right. +* Layout rotates along with Xrandr rotated monitors. ### Philosophy @@ -37,6 +46,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. * Keyboard controls generally preferred over the mouse, when practical. * Faster. Muscle memory. * Click-to-focus model preferred over focus-follows-mouse. @@ -44,20 +54,9 @@ xoat * CtF is harder to get wrong and makes it easy to forget about the mouse for some tasks. * 2/3 is a nice fraction. -### Stuff Removed - -Some elements that proved to be the wrong direction for xoat have been removed. - -* Tags have been replaced with the snapshot/rollback mechanism. - * Tags were a way to group and raise windows en-masse, but they were fiddly to use. - * Snapshot allows the freedom to mess windows up then quicky revert to a known state. -* Some EWMH desktop atoms have been dumped as surplus to requirements. - ### config.h -All customization happens in config.h. See in-line comments there. - -**Note**: config.h is tracked! Use a local git branch to protect any customization. +All customization happens in config.h. See in-line comments there. It's tracked, so use a local git branch or a merge tool to protect any customization. From 4b1918b6269d6a9f585401ace6b84c0eb6442eb7 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 01:27:39 +1000 Subject: [PATCH 3/6] docs --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b3662a5..8969bdd 100644 --- a/README.md +++ b/README.md @@ -13,21 +13,21 @@ xoat ### The Layout - -------------------------------- ------------------- - | | | | | - | | | | | - | | 2 | | | - | 1 | | | 1 | - | |---------| | | - | | | | | - | | 3 | | | - -------------------------------- | | - |-----------------| - | | | - | | | - | 3 | 2 | - | | | - ------------------- + --------------------------------- --------------------- + | | | | | + | | | | | + | | 2 | | | + | 1 | | | 1 | + | |---------| | | + | | | | | + | | 3 | | | + --------------------------------- | | + |-------------------| + | | | + | | | + | 3 | 2 | + | | | + --------------------- * Layout can be flipped horizontally to place tile 1 on the right. * Layout rotates along with Xrandr rotated monitors. From b9528cacade0bc2bacf5e825edef1d31463979e8 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 01:28:38 +1000 Subject: [PATCH 4/6] docs --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 8969bdd..d9ea59a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ xoat --------------------------------- | | |-------------------| | | | - | | | | 3 | 2 | | | | --------------------- From cc5494ca6aaa4958bec94dbbbe6dc95ff35385d0 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:14:13 +1000 Subject: [PATCH 5/6] config.h GAP --- config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/config.h b/config.h index 905ffd6..d7e09ce 100644 --- a/config.h +++ b/config.h @@ -5,6 +5,7 @@ #define BORDER_FOCUS "Royal Blue" #define BORDER_URGENT "Red" #define BORDER_ABOVE "Dark Green" +#define GAP 2 // Title bar xft font #define TITLE "sans:bold:size=10" From e8dbb0d00fbdd1544787f8bfed0e79df3b7530a2 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Tue, 25 Sep 2012 10:15:51 +1000 Subject: [PATCH 6/6] implement GAP --- setup.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.c b/setup.c index 5c6957d..5a782b8 100644 --- a/setup.c +++ b/setup.c @@ -116,9 +116,9 @@ void setup() m->spots[j].h = height_spot1; if (j == SPOT1) continue; - m->spots[j].y = SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1: y; - m->spots[j].h = h - height_spot1; - m->spots[j].w = w - width_spot2; + m->spots[j].y = (SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1: y) + GAP; + m->spots[j].h = h - height_spot1 - GAP; + m->spots[j].w = w - width_spot2 - GAP; if (j == SPOT3) continue; m->spots[j].x = x + w - width_spot2; @@ -136,13 +136,13 @@ void setup() m->spots[j].h = h; if (j == SPOT1) continue; - m->spots[j].x = SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1: x; - m->spots[j].w = w - width_spot1; + m->spots[j].x = (SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1: x) + GAP; + m->spots[j].w = w - width_spot1 - GAP; m->spots[j].h = height_spot2; if (j == SPOT2) continue; - m->spots[j].y = y + height_spot2; - m->spots[j].h = h - height_spot2; + m->spots[j].y = y + height_spot2 + GAP; + m->spots[j].h = h - height_spot2 - GAP; } }