aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README19
-rw-r--r--README.dzen10
2 files changed, 17 insertions, 12 deletions
diff --git a/README b/README
index a7e207c..b5b0354 100644
--- a/README
+++ b/README
@@ -416,11 +416,13 @@ Positioning:
------------
^p(PIXEL) position next input amount of PIXELs to the right
+ or left of the current position
a.k.a. relative positioning
+
^pa(PIXEL) position next input at PIXEL
a.k.a. absolute positioning
For maximum predictability ^^pa() should only be
- used with '-ta l' or '-sa l'
+ used with '-ta l' or '-sa l'.
Other:
------
@@ -428,18 +430,19 @@ Other:
This command has some annoyances, as only
the input after the command will be drawn
to the title window, so it is best used
- only once and as first command per line
+ only once and as first command per line.
Subject to be improved in the future.
^ib(VALUE) ignore background setting, VALUE can be either
1 to ignore or 0 to not ignore the bg color set
- with ^bg(color)
- This command is useful in combination with ^^pa()
- in order to position the input inside other already
- drawn input.
+ with ^bg(color).
+ This command is useful in combination with ^p()
+ and ^pa() in order to position the input inside
+ other already drawn input.
+
+ Example:
+ ^^ib(1)^^fg(red)^^ro(100x15)^^p(-98)^^fg(blue)^^r(20x10)^^fg(orange)^^p(3)^^r(40x10)^^p(4)^^fg(darkgreen)^^co(12)^^p(2)^^c(10)
-Example:
-^ib(1)^pa(4)^fg(red)^ro(100x15)^pa(6)^fg(blue)^r(20x10)^fg(orange)^pa(28)^r(40x10)^pa(70)^p(2)^fg(darkgreen)^co(12)^p(2)^c(12)
These commands can appear anywhere and in any combination in dzen's
diff --git a/README.dzen b/README.dzen
index 36226c4..cff49cd 100644
--- a/README.dzen
+++ b/README.dzen
@@ -415,7 +415,9 @@ Positioning:
------------
^^p(PIXEL) position next input amount of PIXELs to the right
+ or left of the current position
a.k.a. relative positioning
+
^^pa(PIXEL) position next input at PIXEL
a.k.a. absolute positioning
For maximum predictability ^^pa() should only be
@@ -437,10 +439,10 @@ Other:
in order to position the input inside other already
drawn input.
-Example:
-^^ib(1)^^pa(4)^^fg(red)^^ro(100x15)^^pa(6)^^fg(blue)^^r(20x10)^^fg(orange)^^pa(28)^^r(40x10)^^pa(70)^^p(2)^^fg(darkgreen)^^co(12)^^p(2)^^c(12)
-Giving:
-^ib(1)^pa(4)^fg(red)^ro(100x15)^pa(6)^fg(blue)^r(20x10)^fg(orange)^pa(28)^r(40x10)^pa(70)^p(2)^fg(darkgreen)^co(12)^p(2)^c(12)
+ Example:
+ ^^ib(1)^^fg(red)^^ro(100x15)^^p(-98)^^fg(blue)^^r(20x10)^^fg(orange)^^p(3)^^r(40x10)^^p(4)^^fg(darkgreen)^^co(12)^^p(2)^^c(10)
+ Giving:
+ ^ib(1)^fg(red)^ro(100x15)^p(-98)^fg(blue)^r(20x10)^fg(orange)^p(3)^r(40x10)^p(4)^fg(darkgreen)^co(12)^p(2)^c(10)