mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
swaybar: show hidden bar on key event
Since wayland does not currently allow swaybar to create global keybinds, this is handled within sway and sent to the bar using a custom event, so as not to pollute existing events, called bar_state_update.
This commit is contained in:
parent
bcc61e5147
commit
2f1fd80726
8 changed files with 66 additions and 7 deletions
|
|
@ -191,6 +191,7 @@ struct bar_config {
|
|||
* In "show" mode, it will always be shown on top of the active workspace.
|
||||
*/
|
||||
char *hidden_state;
|
||||
bool visible_by_modifier; // only relevant in "hide" mode
|
||||
/**
|
||||
* Id name used to identify the bar through IPC.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ void ipc_event_workspace(struct sway_workspace *old,
|
|||
struct sway_workspace *new, const char *change);
|
||||
void ipc_event_window(struct sway_container *window, const char *change);
|
||||
void ipc_event_barconfig_update(struct bar_config *bar);
|
||||
void ipc_event_bar_state_update(struct bar_config *bar);
|
||||
void ipc_event_mode(const char *mode, bool pango);
|
||||
void ipc_event_shutdown(const char *reason);
|
||||
void ipc_event_binding(struct sway_binding *binding);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue