justus jonas
2013-04-13 11:28:22 UTC
Hi all,
currently I am working on a patch for fixing feature request #651 and
#833. This would introduce a mode "toggle" for i3bar, which toggles
between showing and hiding the i3bar whenever the i3bar modifier is
pressed.
This is easily done when targeting a setup with only one i3bar process.
But when using two bar blocks in the config, two i3bar processes are
started, each one only has knowledge about the output (and its children
workspaces) where they are drawn on. So if one of the bars is unhidden
because of an urgency hint, I have no way to synchronize the
hidden/unhidden state between the two processes. So, when only one of
the bars is unhidden, I would like to react to this in both i3bar
processes, so I can switch to hiding the bars when pressing the modifier
next time. Otherwise the two processes will have different states when
toggling, or I would toggle to unhiding the i3bar even though one or
both of the bars may already be unhidden.
Can anyone of you give me a hint on how to synchronize the state of the
two bars or how to tackle this problem in another way?
Thanks in advance and best regards
jj
currently I am working on a patch for fixing feature request #651 and
#833. This would introduce a mode "toggle" for i3bar, which toggles
between showing and hiding the i3bar whenever the i3bar modifier is
pressed.
This is easily done when targeting a setup with only one i3bar process.
But when using two bar blocks in the config, two i3bar processes are
started, each one only has knowledge about the output (and its children
workspaces) where they are drawn on. So if one of the bars is unhidden
because of an urgency hint, I have no way to synchronize the
hidden/unhidden state between the two processes. So, when only one of
the bars is unhidden, I would like to react to this in both i3bar
processes, so I can switch to hiding the bars when pressing the modifier
next time. Otherwise the two processes will have different states when
toggling, or I would toggle to unhiding the i3bar even though one or
both of the bars may already be unhidden.
Can anyone of you give me a hint on how to synchronize the state of the
two bars or how to tackle this problem in another way?
Thanks in advance and best regards
jj