Waybar will sometimes not launch for me when I boot up. It seems this has become more the rule than the exception. The only way I can get it back is by running the waybar command in the terminal and then I have to leave that terminal open and running to have waybar. I also encounter the same issues whenever I plug my laptop to an external monitor. Does anyone know if this error is a compatibility issue with a package?
Here is the error code when I run waybar in the terminal:
[2022-01-17 17:21:09.344] [info] Using configuration file /home/jerry/.config/waybar/config
[2022-01-17 17:21:09.344] [info] Using CSS file /home/jerry/.config/waybar/style.css
(waybar:1526): Gtk-WARNING **: 17:21:09.344: Theme parsing error: style.css:151:13: Not using units is deprecated. Assuming 'px'.
[2022-01-17 17:21:09.355] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2022-01-17 17:21:09.355] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
** (waybar:1526): WARNING **: 17:21:09.376: gtk-layer-shell v0.6.0 may not work on GTK v3.24.31. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
[2022-01-17 17:21:09.537] [warning] Requested height: 30 is less than the minimum height: 33 required by the modules
[2022-01-17 17:21:09.537] [info] Bar configured (width: 1920, height: 33) for output: eDP-1
** (waybar:1526): WARNING **: 17:21:09.541: Status Notifier Item with bus name ':1.4' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2022-01-17 17:21:09.580] [warning] Requested height: 33 is less than the minimum height: 38 required by the modules
[2022-01-17 17:21:09.580] [info] Bar configured (width: 1920, height: 38) for output: eDP-1
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 17:21:11.256] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 17:31:13.630] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 17:41:16.159] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 17:51:18.363] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
I looked up the waybar config file on the github page to find the defaults. I changed everything back to default and it seems to be working! Plugged it in to monitor as well, and it works just fine.
I have pretty much the same errors, I made a couple modification to the css and the modules too.
Did not have the time to look into it.
Summary
(waybar:159547): Gtk-WARNING **: 21:29:32.318: Theme parsing error: style.css:150:13: Not using units is deprecated. Assuming 'px'.
[2022-01-17 21:29:32.337] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-01-17 21:29:32.338] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
** (waybar:159547): WARNING **: 21:29:32.367: gtk-layer-shell v0.6.0 may not work on GTK v3.24.31. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
(waybar:159547): GLib-GObject-WARNING **: 21:29:32.368: ../glib/gobject/gsignal.c:2081: type 'GtkWindow' is already overridden for signal id '73'
(waybar:159547): GLib-GObject-WARNING **: 21:29:32.368: ../glib/gobject/gsignal.c:2081: type 'GtkWindow' is already overridden for signal id '72'
[2022-01-17 21:29:32.380] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-01-17 21:29:32.382] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
(waybar:159547): GLib-GObject-WARNING **: 21:29:32.385: ../glib/gobject/gsignal.c:2081: type 'GtkWindow' is already overridden for signal id '73'
(waybar:159547): GLib-GObject-WARNING **: 21:29:32.385: ../glib/gobject/gsignal.c:2081: type 'GtkWindow' is already overridden for signal id '72'
[2022-01-17 21:29:32.405] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-01-17 21:29:32.406] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
** (waybar:159547): WARNING **: 21:29:32.659: Status Notifier Item with bus name ':1.2079' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2022-01-17 21:29:32.838] [warning] Requested height: 28 is less than the minimum height: 47 required by the modules
[2022-01-17 21:29:32.838] [info] Bar configured (width: 3840, height: 47) for output: HDMI-A-1
[2022-01-17 21:29:32.840] [warning] Requested height: 28 is less than the minimum height: 47 required by the modules
[2022-01-17 21:29:32.840] [info] Bar configured (width: 3840, height: 47) for output: DP-3
[2022-01-17 21:29:32.840] [warning] Requested height: 28 is less than the minimum height: 47 required by the modules
[2022-01-17 21:29:32.840] [info] Bar configured (width: 3840, height: 47) for output: DP-2
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 21:29:33.522] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 21:29:33.531] [error] : * Line 1, Column 46
Syntax error: value, object or array expected.
parse error: Invalid numeric literal at line 1, column 7
[2022-01-17 21:29:33.533] [error] 1: * Line 1, Column 46
Syntax error: value, object or array expected.