From d7d1873cd009edc8f3de8d141de388f638c6a926 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 2 Feb 2022 21:32:01 +0000 Subject: Allow specifying color format as a -T argument --- readme.org | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'readme.org') 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 -- cgit v1.2.3