diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-14 18:53:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 18:53:32 -0400 |
commit | eb6e38c86d2deb37cc6f378f8644c4a530fd7448 (patch) | |
tree | e3c567c4684faf0f9a7f77494f1bf638171d5349 /swaybar/config.c | |
parent | 16e20ec251b027c5a8dbc5e85804012f2602629d (diff) | |
parent | 0fc9628f03984caa04e200a1dc458d1cf7fc6d6c (diff) |
Merge pull request #1234 from 4e554c4c/tray
Implement Tray Icons
Diffstat (limited to 'swaybar/config.c')
-rw-r--r-- | swaybar/config.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/swaybar/config.c b/swaybar/config.c index 1d802022..8fe552f2 100644 --- a/swaybar/config.c +++ b/swaybar/config.c @@ -48,6 +48,18 @@ struct config *init_config() { /* height */ config->height = 0; +#ifdef ENABLE_TRAY + config->tray_output = NULL; + config->icon_theme = NULL; + config->tray_padding = 2; + /** + * These constants are used by wayland and are defined in + * linux/input-event-codes.h + */ + config->activate_button = 0x110; /* BTN_LEFT */ + config->context_button = 0x111; /* BTN_RIGHT */ +#endif + /* colors */ config->colors.background = 0x000000FF; config->colors.statusline = 0xFFFFFFFF; |