summaryrefslogtreecommitdiff
path: root/include/ipc.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-10-12 21:14:52 +0100
committerFurkan Sahin <furkan-dev@proton.me>2018-10-12 21:14:52 +0100
commit9401d5ddf12f55cff8dea6ebf85f44fca74c5506 (patch)
tree948b7912a2341c2d0b903258b444173b3fd4d1f3 /include/ipc.h
parent7badafe31e73990bc8f614d5806cc45aeeba3806 (diff)
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.
Diffstat (limited to 'include/ipc.h')
-rw-r--r--include/ipc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ipc.h b/include/ipc.h
index a3f60e19..9063b933 100644
--- a/include/ipc.h
+++ b/include/ipc.h
@@ -30,6 +30,9 @@ enum ipc_command_type {
IPC_EVENT_BINDING = ((1<<31) | 5),
IPC_EVENT_SHUTDOWN = ((1<<31) | 6),
IPC_EVENT_TICK = ((1<<31) | 7),
+
+ // sway-specific event types
+ IPC_EVENT_BAR_STATE_UPDATE = ((1<<31) | 20),
};
#endif