Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new module to display short strings from file. #313

Closed
wants to merge 2 commits into from
Closed

Conversation

@hdasch
Copy link

hdasch commented Oct 8, 2018

This new module allows i3status to display short character sequences generated from an alternate script. For example, an email monitoring script can generate a sequence of character for each inbox that has unread mail pending, storing the sequence in a file shared with the i3status config.

That script can update the status file on a schedule independent on the i3status update interval. The static-text modules caches the contents of the file, rereading it whenever it gets updated or truncated. So if the status file is updated infrequently, the only cost to i3status is an additional stat(2) system call.

hdasch added 2 commits Oct 8, 2018
This new module allows i3status to display short character sequences
generated from an alternate script.  For example, an email monitoring
script can generate a sequence of character for each inbox that has
unread mail pending, storing the sequence in a file shared with the
i3status config.

That script can update the status file on a schedule independent on
the i3status update interval.  The static-text modules caches the
contents of the file, rereading it whenever it gets updated or
truncated.  So if the status file is updated infrequently, the only
cost to i3status is an additional stat(2) system call.
Ran "clang-format -i **/*.[ch]".
@Airblader

This comment has been minimized.

Copy link
Member

Airblader commented Oct 9, 2018

#66, #89, #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.