diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-11-03 08:32:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 08:32:10 -0600 |
commit | e9ac0492b7ec55d34d9209f2ff3e08de5c014d65 (patch) | |
tree | ee822e5e219275c84446709c349de630d7441055 /include/swaybar | |
parent | Log LD_LIBRARY_PATH (diff) | |
parent | swap unnecessary function for strndup (diff) | |
download | sway-e9ac0492b7ec55d34d9209f2ff3e08de5c014d65.tar.gz sway-e9ac0492b7ec55d34d9209f2ff3e08de5c014d65.tar.zst sway-e9ac0492b7ec55d34d9209f2ff3e08de5c014d65.zip |
Merge pull request #965 from thejan2009/swaybar-colours
Fix some colour settings in swaybar
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 2 | ||||
-rw-r--r-- | include/swaybar/config.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index a3c511d9..697a48c2 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -9,6 +9,7 @@ struct bar { | |||
9 | struct config *config; | 9 | struct config *config; |
10 | struct status_line *status; | 10 | struct status_line *status; |
11 | list_t *outputs; | 11 | list_t *outputs; |
12 | struct output *focused_output; | ||
12 | 13 | ||
13 | int ipc_event_socketfd; | 14 | int ipc_event_socketfd; |
14 | int ipc_socketfd; | 15 | int ipc_socketfd; |
@@ -22,6 +23,7 @@ struct output { | |||
22 | list_t *workspaces; | 23 | list_t *workspaces; |
23 | char *name; | 24 | char *name; |
24 | int idx; | 25 | int idx; |
26 | bool focused; | ||
25 | }; | 27 | }; |
26 | 28 | ||
27 | struct workspace { | 29 | struct workspace { |
diff --git a/include/swaybar/config.h b/include/swaybar/config.h index 934116ca..04b12cd4 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h | |||
@@ -40,6 +40,10 @@ struct config { | |||
40 | uint32_t statusline; | 40 | uint32_t statusline; |
41 | uint32_t separator; | 41 | uint32_t separator; |
42 | 42 | ||
43 | uint32_t focused_background; | ||
44 | uint32_t focused_statusline; | ||
45 | uint32_t focused_separator; | ||
46 | |||
43 | struct box_colors focused_workspace; | 47 | struct box_colors focused_workspace; |
44 | struct box_colors active_workspace; | 48 | struct box_colors active_workspace; |
45 | struct box_colors inactive_workspace; | 49 | struct box_colors inactive_workspace; |