-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
swaybar: only show last status line #5103
base: master
Are you sure you want to change the base?
Conversation
Have you tested whether this will work if the last line ends with a new-line character? |
I did before and after these changes, and both output just a new line character. I wasnt sure whether to go further and make it ignore the last line if it's a new line character, or whether the onus is on whatever is generating the status line to not output empty lines. |
I mean: if you send |
From memory it would just output a newline, so the status line would be empty. I will check again once #5106 is fixed. |
In sway config: status_command tail -f /tmp/1
However the second time Hmm... |
I think that it should show the line before the |
It is very common to produce output from shell scripts using As far as i3bar goes, maybe it'd be a good idea to ask the i3 developers if its behaviour is intentional. |
Yeah if no one else does then I will try find some time to install i3 and verify the existing behaviour before asking the guys over there. |
@ianyfan Testing output of i3/swaybar below. "⏎" means the newline char was printed, but not rendered.
|
I think I'll need to modify the behaviour of the code around |
I'd prefer to get changes merged into i3 first so that its behaviour can be confirmed (I think we can afford to wait since this seems to be fairly low priority). Also: could you see what the intended behaviour is if you first send an incomplete line and then complete it later? e.g. if you send Thanks. |
Good points. Code should be more or less the same so I'll take it over to i3 first. |
Closing as don't have time to work on this Feel free to pick it up |
Solves #4496