mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
swaybar: add option to show tray left of status
This commit is contained in:
parent
c57daaf0d1
commit
1b2e930cb9
12 changed files with 54 additions and 3 deletions
|
|
@ -283,7 +283,7 @@ static bool ipc_parse_config(
|
|||
config->wrap_scroll = json_object_get_boolean(wrap_scroll);
|
||||
}
|
||||
#if HAVE_TRAY
|
||||
json_object *tray_outputs, *tray_padding, *tray_bindings, *icon_theme;
|
||||
json_object *tray_outputs, *tray_padding, *tray_last, *tray_bindings, *icon_theme;
|
||||
|
||||
if (config->tray_outputs && config->tray_outputs->length) {
|
||||
list_free_items_and_destroy(config->tray_outputs);
|
||||
|
|
@ -308,6 +308,10 @@ static bool ipc_parse_config(
|
|||
config->tray_padding = json_object_get_int(tray_padding);
|
||||
}
|
||||
|
||||
if ((json_object_object_get_ex(bar_config, "tray_last", &tray_last))) {
|
||||
config->tray_last = json_object_get_boolean(tray_last);
|
||||
}
|
||||
|
||||
struct tray_binding *tray_bind = NULL, *tmp_tray_bind = NULL;
|
||||
wl_list_for_each_safe(tray_bind, tmp_tray_bind, &config->tray_bindings,
|
||||
link) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue