i3status and lemonbar

asked 2015-06-12 11:42:30 +0000

rfnwe gravatar image

I'd like to use lemonbar with i3status. This requires a possibility to escape the percent sign in i3status. I've tried %% and \% but no effect.

Also is it possible to configure the output of commands like %usage such that they don't contain a trailing percent sign?

edit retag flag offensive close merge delete

Comments

man i3status

Airblader gravatar imageAirblader ( 2015-06-12 16:00:19 +0000 )edit

That's where I've been looking. But I haven't found anything.

rfnwe gravatar imagerfnwe ( 2015-06-12 16:05:39 +0000 )edit

OK then. To the last question: no, the percent sign is hardcoded. To the first question: you can always write a wrapper script around i3status. Personally, I'd just recommend using something other than i3status for any non-trivial customization.

Airblader gravatar imageAirblader ( 2015-06-12 21:42:09 +0000 )edit

(https://github.com/i3/i3status/blob/master/src/print_cpu_usage.c#L105)

Airblader gravatar imageAirblader ( 2015-06-12 21:42:32 +0000 )edit

What would you recommend? Conky seems quite heavy. I did like i3status for its aim to be efficient by issuing only a few system calls. Maybe there is something similar written in C/C++.

rfnwe gravatar imagerfnwe ( 2015-06-13 09:40:44 +0000 )edit