Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray does not show up #1717

Closed
pmatos opened this issue Oct 13, 2022 · 1 comment
Closed

Tray does not show up #1717

pmatos opened this issue Oct 13, 2022 · 1 comment

Comments

@pmatos
Copy link

pmatos commented Oct 13, 2022

I have read #21. I am on archlinux running waybar 0.9.13 in sway 1.7.

~ export | grep XDG
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/home/pmatos/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=Unity
XDG_SESSION_ID=3
XDG_SESSION_TYPE=wayland
XDG_VTNR=1

My config is simple:

~ cat .config/waybar/config
{
    "layer": "top",
    "modules-left": ["sway/workspaces", "sway/mode"],
    "modules-center": ["sway/window"],
    "modules-right": ["battery", "clock", "tray"],
    "sway/window": {
        "max-length": 50
    },
    "battery": {
        "format": "{capacity}% {icon}",
        "format-icons": ["", "", "", "", ""]
    },
    "clock": {
        "format-alt": "{:%a, %d. %b  %H:%M}"
    },
    "tray": {
    	"icon-size": 21,
	"spacing": 10,
        "show-passive-items": true
    }
}

Even when attempting to trace, sway says nothing about the tray or any issue in rendering it:

~ waybar -l trace          
[2022-10-13 08:37:59.074] [info] Using configuration file /home/pmatos/.config/waybar/config
[2022-10-13 08:37:59.074] [info] Using CSS file /home/pmatos/.config/waybar/style.css
[2022-10-13 08:38:24.088] [debug] Output detection done: eDP-1 (Unknown 0x06B3 0x00000000)
[2022-10-13 08:38:24.089] [debug] Output detection done: DP-5 (Goldstar Company Ltd LG Ultra HD 0x000003E5)
[2022-10-13 08:38:24.089] [debug] Output detection done: DP-6 (Goldstar Company Ltd LG Ultra HD 0x00008617)
[2022-10-13 08:38:24.091] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2022-10-13 08:38:24.091] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity

** (waybar:16502): WARNING **: 08:38:24.121: gtk-layer-shell v0.7.0 may not work on GTK v3.24.34. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
[2022-10-13 08:38:24.121] [debug] GTK widget tree:
window#waybar.background..DP-6.mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal:dir(ltr)
      widget:dir(ltr)
        label#mode:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        box.horizontal:dir(ltr)
          image:dir(ltr)
          label#window:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#battery:dir(ltr)
      widget:dir(ltr)
        label#clock:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal:dir(ltr)


(waybar:16502): GLib-GObject-WARNING **: 08:38:24.121: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '73'

(waybar:16502): GLib-GObject-WARNING **: 08:38:24.121: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '72'
[2022-10-13 08:38:24.123] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2022-10-13 08:38:24.123] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-10-13 08:38:24.124] [debug] GTK widget tree:
window#waybar.background..DP-5.mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal:dir(ltr)
      widget:dir(ltr)
        label#mode:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        box.horizontal:dir(ltr)
          image:dir(ltr)
          label#window:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#battery:dir(ltr)
      widget:dir(ltr)
        label#clock:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal:dir(ltr)


(waybar:16502): GLib-GObject-WARNING **: 08:38:24.124: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '73'

(waybar:16502): GLib-GObject-WARNING **: 08:38:24.124: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '72'
[2022-10-13 08:38:24.126] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2022-10-13 08:38:24.126] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2022-10-13 08:38:24.126] [debug] GTK widget tree:
window#waybar.background.eDP-1..mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal:dir(ltr)
      widget:dir(ltr)
        label#mode:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        box.horizontal:dir(ltr)
          image:dir(ltr)
          label#window:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#battery:dir(ltr)
      widget:dir(ltr)
        label#clock:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal:dir(ltr)

[2022-10-13 08:38:24.142] [info] Bar configured (width: 2560, height: 24) for output: DP-6
[2022-10-13 08:38:24.142] [info] Bar configured (width: 1440, height: 24) for output: DP-5
[2022-10-13 08:38:24.142] [info] Bar configured (width: 1920, height: 24) for output: eDP-1
[2022-10-13 08:38:24.143] [info] Bar configured (width: 2560, height: 24) for output: DP-6
[2022-10-13 08:38:24.143] [info] Bar configured (width: 1440, height: 24) for output: DP-5

I would expect that if it's not rendered, then at least an error would show but I see nothing.

Any ideas on how I can bettter understand what's going on?

@pmatos
Copy link
Author

pmatos commented Nov 9, 2022

Interestingly things started working for no good reason. Maybe I started a necessary service or installed a required package. In any case, it is now showing up.

@pmatos pmatos closed this as completed Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant