mirror of
https://github.com/swaywm/sway.git
synced 2025-10-28 05:40:16 -04:00
swaybar: handle mode/hidden_state changes
As well as adding the hidden_state property to the bar config struct, this commit handles barconfig_update events when the mode or hidden_state changes, and uses a new function determine_bar_visibility to hide or show the bar as required, using, respectively, destroy_layer_surface, which is also newly added, and add_layer_surface, which has been changed to allow dynamically adding the surface.
This commit is contained in:
parent
55ca16f2d8
commit
bcc61e5147
6 changed files with 127 additions and 11 deletions
|
|
@ -31,6 +31,7 @@ struct swaybar_config {
|
|||
char *font;
|
||||
char *sep_symbol;
|
||||
char *mode;
|
||||
char *hidden_state;
|
||||
bool strip_workspace_numbers;
|
||||
bool binding_mode_indicator;
|
||||
bool wrap_scroll;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue