The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

i3status add external text files

asked 2013-01-04 18:34:25 +0000

mikevmk gravatar image

Hi,

First of all let me say that i3 WM is great and very useful for me. Thanks to develper(s)! :)

My question is about integration user information into i3bar.

Man page for i3status contains this:

In i3status, we don’t want to implement process management again. Therefore, there is no module to run arbitrary scripts or commands. Instead, you should use your shell

Maybe you're right and adding 'run scripts' functionality is unnecessary here, but suggested solution seems to be not handy too. I can't effectively parse JSON array with shell to modify i3status output before sending to i3bar. And all that python wrappers are incredibly slow and overheaded.

I want to have some lightweight unix-way solution here and i3status (written in C?) seems to be almost about such solution. But i need to have additional information in the bar without unnecessary overheaded script wrappers.

So, is it possible to add text files support to i3status? Let it check if we have text in text file, then we're adding it to the output. That's all.

For example, i have my own python script which shows me the weather. I want to run it from cron once in 10 (or 20, or 30) minutes (i don't need more) and let it write its output to the file.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-01-15 19:24:45 +0000

joepd gravatar image

Your use case does not match the intentions of the developers. If you're up for flexibility (and increase of system load), have a look at this featured article in the User's Documentation.

edit flag offensive delete link more

Comments

BTW: For checking the weather, I consider myself to be the tiling window manager. This screen in the upper-left corner of my eye sight is dedicated to display some weather characteristics ;)

joepd gravatar imagejoepd ( 2013-01-15 19:29:07 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2013-01-04 18:34:25 +0000

Seen: 1,004 times

Last updated: Jan 15 '13