summaryrefslogtreecommitdiffhomepage
path: root/readme.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-02-02 21:32:01 +0000
committerjao <jao@gnu.org>2022-02-02 21:32:01 +0000
commitd7d1873cd009edc8f3de8d141de388f638c6a926 (patch)
treeb87363d1656369b2a9413bf025971ebbc8ff1309 /readme.org
parent560c68cd4f0890a6e273b4a5918ac71416d64d88 (diff)
downloadxmobar-d7d1873cd009edc8f3de8d141de388f638c6a926.tar.gz
xmobar-d7d1873cd009edc8f3de8d141de388f638c6a926.tar.bz2
Allow specifying color format as a -T argument
Diffstat (limited to 'readme.org')
-rw-r--r--readme.org26
1 files changed, 24 insertions, 2 deletions
diff --git a/readme.org b/readme.org
index 36ad94a..ac9e72e 100644
--- a/readme.org
+++ b/readme.org
@@ -108,7 +108,7 @@
xmobar can be run inside a terminal o console, or its output piped
to other applications, and there is no need for an X11 display
(so, for instance, you could pipe xmobar's output to a Wayland
- application, such as waybar.)
+ application, such as swaybar.)
To run xmobar in text mode, either pass the =-T= flag to its
invocation:
@@ -117,7 +117,29 @@
xmobar -T /path/to/config &
#+end_src
- or set the parameter =textOutput= to True in its configuration.
+ or set the parameter =textOutput= to True in its configuration. You
+ can also specify the format of color escapes, for instance
+ omitting them altogether with ~NoColors~:
+
+ #+begin_src shell
+ xmobar -TNoColors /path/to/config &
+ #+end_src
+
+ Other options are ~Ansi~ and ~Pango~.
+
+*** Using xmobar in Wayland with swaybar
+
+ In text mode, xmobar can be told to ouput its information using
+ pango markup for colors, and it that way you can use it with
+ swaybar. Here's a minimal ~bar~ configuration for sway's
+ configuration file:
+
+ #+begin_src conf
+ bar {
+ status_command xmobar -TPango
+ pango_markup enabled
+ }
+ #+end_src
* Configuration and further Links