rholder / i3status-title-on-bar

Inject the active window title into the output of i3status.
Apache License 2.0
8 stars 0 forks source link

Must be reloaded after opening first window in order to work #1

Open NCLI opened 4 years ago

NCLI commented 4 years ago

What happens:

  1. i3 is started, with no open windows or DE.
  2. The i3status command does not give any output to i3, and eventually crashes with an error.
  3. I open a window, and press shift+super+r to reload i3.
  4. i3status works correctly, including window title.
  5. The window is closed, and the title disappears from the i3bar, but i3status continues to work.

What I expect to happen:

  1. i3 is started, with no open windows or DE.
  2. The i3status command works correctly, displaying no windows title until one is opened.
bowbored commented 3 years ago

I have the same bug. I made an improvised fix that runs on startup. It runs automatically this command: "urxvt -e i3-msg restart", which will open a Terminal and refresh i3 and then close it again. I used a bash script but you can probably just write it into the i3 config.

AlexNaga commented 3 years ago

Based on the comment above, I was able to put this into the i3 config: exec --no-startup-id "sleep 20; urxvt -e i3-msg restart"