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 Jan 4 '13

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.

1 answer

Sort by » oldest newest most voted
0

answered Jan 15 '13

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.

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 (Jan 15 '13)edit

Question Tools

1 follower

Stats

Asked: Jan 4 '13

Seen: 1,004 times

Last updated: Jan 15 '13