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

i3blocks will not accept input from stdout after too long of inactivity #450

Open
Noodlez1232 opened this issue Aug 1, 2021 · 3 comments

Comments

@Noodlez1232
Copy link

Noodlez1232 commented Aug 1, 2021

If there's too much time between outputs to stdout for the block, i3blocks will no longer output stdout

There's an easy way to replicate this using xtitle

  1. Create a block with the following configuration:
[wintitle]
interval=persist
command="xtitle -s"
  1. After this, just let your computer sit, making sure the window will not change names
  2. The block will no longer update
@Noodlez1232 Noodlez1232 changed the title i3blocks will not accept input from stdout:w after too long of inactivity i3blocks will not accept input from stdout after too long of inactivity Aug 1, 2021
@Noodlez1232
Copy link
Author

Sorry about the title edit. I was just using vim before opening this issue and tried saving the title. Whoops!

@zsugabubus
Copy link

zsugabubus commented Aug 1, 2021

Cannot be that it only occurs with xtitle -s? Have you tested others? (Maybe a simple echo && sleep && echo?)

Just because if you search the issue tracker you will see a few reports about xtitle does not work as expected.

@Noodlez1232
Copy link
Author

Cannot be that it only occurs with xtitle -s? Have you tested others? (Maybe a simple echo && sleep && echo?)

Yeah I'm gonna try that overnight. It's very late here so I'm going to bed now, but I'll run multiple tests like this.
The tests I'll be running:

[test]
command=xtitle -s
interval=persist
[test]
command=while true; do echo "Hello" && sleep 512 && echo "Hello2" && sleep 512; done
interval=persist
[test]
command=while true; do echo "Hello" && sleep 2048 && echo "Hello2" && sleep 2048; done
interval=persist

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

No branches or pull requests

2 participants