summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-14 11:25:31 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-14 11:25:31 -0500
commit2be742d02d8dd26e111713d9bb52cd240d7d630b (patch)
tree84a5091db97f6c14515ce871922c431c0fe9eaca /include
parentMerge pull request #316 from Streetwalrus/fglrx (diff)
parentAdd bar id to debug logs (diff)
downloadsway-2be742d02d8dd26e111713d9bb52cd240d7d630b.tar.gz
sway-2be742d02d8dd26e111713d9bb52cd240d7d630b.tar.zst
sway-2be742d02d8dd26e111713d9bb52cd240d7d630b.zip
Merge pull request #314 from mikkeloscar/bar-id
Add initial support for custom bar-id
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
-rw-r--r--include/util.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 04528e27..0f3ce550 100644
--- a/include/config.h
+++ b/include/config.h
@@ -72,6 +72,13 @@ struct bar_config {
72 * In "show" mode, it will always be shown on top of the active workspace. 72 * In "show" mode, it will always be shown on top of the active workspace.
73 */ 73 */
74 char *hidden_state; 74 char *hidden_state;
75 /**
76 * Id name used to identify the bar through IPC.
77 *
78 * Defaults to bar-x, where x corresponds to the position of the
79 * embedding bar block in the config file (bar-0, bar-1, ...).
80 */
81 char *id;
75 uint32_t modifier; 82 uint32_t modifier;
76 enum desktop_shell_panel_position position; 83 enum desktop_shell_panel_position position;
77 char *status_command; 84 char *status_command;
diff --git a/include/util.h b/include/util.h
index 8e65e6d6..9cb861dd 100644
--- a/include/util.h
+++ b/include/util.h
@@ -6,4 +6,9 @@
6 */ 6 */
7int wrap(int i, int max); 7int wrap(int i, int max);
8 8
9/**
10 * Count number of digits in int
11 */
12int numlen(int n);
13
9#endif 14#endif