I have some custom modules that won't show up if Waybar is started by hyprland or rofi. If I start waybar from a terminal window they show up fine.
Here is the code snippet
{
"layer": "top",
"position": "top",
"margin-top": 5,
"margin-left": 3,
"margin-right": 3,
"reload_style_on_change": true,
"modules-left": [
"clock",
"hyprland/workspaces",
"custom/tasks"
],
"modules-center": [
],
"modules-right": [
"mpd",
"custom/weather",
"custom/updates",
"custom/wireguard-manager",
"group/tray",
"custom/notification"
],
"group/tray":{
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"child-class": "not-power",
"transition-left-to-right": false,
"click-to-reveal": false
},
"modules": [
"custom/tab",
"custom/gammastep",
"pulseaudio",
"tray"
]
},
"custom/tasks": {
"format": " {text}",
"exec": "polybar-vikunja --get-todo-count",
"on-click": "polybar-vikunja --show-todos-popup",
"on-click-right": "polybar-vikunja --config-popup",
},
The tasks module only shows up when run from the terminal.
This screenshot shows launched with hyprland top and Alacritty bottom.

I have some custom modules that won't show up if Waybar is started by hyprland or rofi. If I start waybar from a terminal window they show up fine.
Here is the code snippet
{ "layer": "top", "position": "top", "margin-top": 5, "margin-left": 3, "margin-right": 3, "reload_style_on_change": true, "modules-left": [ "clock", "hyprland/workspaces", "custom/tasks" ], "modules-center": [ ], "modules-right": [ "mpd", "custom/weather", "custom/updates", "custom/wireguard-manager", "group/tray", "custom/notification" ], "group/tray":{ "orientation": "inherit", "drawer": { "transition-duration": 500, "child-class": "not-power", "transition-left-to-right": false, "click-to-reveal": false }, "modules": [ "custom/tab", "custom/gammastep", "pulseaudio", "tray" ] }, "custom/tasks": { "format": " {text}", "exec": "polybar-vikunja --get-todo-count", "on-click": "polybar-vikunja --show-todos-popup", "on-click-right": "polybar-vikunja --config-popup", },The
tasksmodule only shows up when run from the terminal.This screenshot shows launched with hyprland
topand Alacrittybottom.