Skip to content

Problem with using $HOME in image module #5080

@efnfloyd

Description

@efnfloyd

when writing $HOME or ~ waybar doesnt find the image, only when /home/myname/ is specified

"image":{
		"path": "$HOME/customization/image.png",
		"size": 20,
		"on-click": "rofi -show drun"
	},

waybar version v0.15.0
os: Cachyos

debug:

 waybar --log-level debug
[2026-05-29 00:51:28.975] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2026-05-29 00:51:28.975] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2026-05-29 00:51:28.976] [debug] Try expanding: $HOME/.config/waybar/config
[2026-05-29 00:51:28.976] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2026-05-29 00:51:28.976] [debug] Try expanding: $HOME/waybar/config
[2026-05-29 00:51:28.976] [debug] Try expanding: $HOME/waybar/config.jsonc
[2026-05-29 00:51:28.976] [debug] Try expanding: /etc/xdg/waybar/config
[2026-05-29 00:51:28.976] [debug] Try expanding: /etc/xdg/waybar/config.jsonc
[2026-05-29 00:51:28.976] [debug] Found config file: /etc/xdg/waybar/config.jsonc
[2026-05-29 00:51:28.976] [info] Using configuration file /etc/xdg/waybar/config.jsonc
[2026-05-29 00:51:28.977] [info] Discovered appearance 'dark'
[2026-05-29 00:51:28.989] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style-dark.css
[2026-05-29 00:51:28.989] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2026-05-29 00:51:28.989] [debug] Try expanding: $HOME/.config/waybar/style-dark.css
[2026-05-29 00:51:28.989] [debug] Try expanding: $HOME/.config/waybar/style.css
[2026-05-29 00:51:28.989] [debug] Try expanding: $HOME/waybar/style-dark.css
[2026-05-29 00:51:28.989] [debug] Try expanding: $HOME/waybar/style.css
[2026-05-29 00:51:28.989] [debug] Try expanding: /etc/xdg/waybar/style-dark.css
[2026-05-29 00:51:28.989] [debug] Try expanding: /etc/xdg/waybar/style.css
[2026-05-29 00:51:28.989] [debug] Found config file: /etc/xdg/waybar/style.css
[2026-05-29 00:51:28.989] [info] Using CSS file /etc/xdg/waybar/style.css

(waybar:109087): Gtk-WARNING **: 00:51:28.989: Theme parsing error: style.css:144:18: Not using units is deprecated. Assuming 'px'.

(waybar:109087): Gtk-WARNING **: 00:51:28.990: Theme parsing error: style.css:149:17: Not using units is deprecated. Assuming 'px'.

(waybar:109087): Gtk-WARNING **: 00:51:28.990: Theme parsing error: style.css:155:18: Not using units is deprecated. Assuming 'px'.

(waybar:109087): Gtk-WARNING **: 00:51:28.990: Theme parsing error: style.css:354:13: Not using units is deprecated. Assuming 'px'.
[2026-05-29 00:51:28.992] [debug] Output detection done: DP-3 (Microstep MSI G32C4 0x00000090)
[2026-05-29 00:51:28.993] [info] Hyprland IPC starting
[2026-05-29 00:51:28.994] [debug] window-rewrite is not defined or is not an object, using default rules.
[2026-05-29 00:51:28.994] [debug] Initializing workspaces
[2026-05-29 00:51:28.995] [debug] Initializing persistent workspaces
[2026-05-29 00:51:28.995] [info] Loading persistent workspaces from Waybar config
[2026-05-29 00:51:28.995] [debug] Creating 4 persistent workspaces for monitor DP-3
[2026-05-29 00:51:28.995] [info] Loading persistent workspaces from Hyprland workspace rules
[2026-05-29 00:51:28.995] [warning] module cava: Disabling module "cava", Unknown module
[2026-05-29 00:51:28.995] [debug] mpd: Disconnected: enabled 1s interval timer.
[2026-05-29 00:51:29.007] [debug] GTK widget tree:
window#waybar.background.top.DP-3..mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#image.horizontal.module:dir(ltr)
          image:dir(ltr)
      widget:dir(ltr)
        label#clock.module:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
      widget:dir(ltr)
        box#window.horizontal.module:dir(ltr)
          image:dir(ltr)
          label:dir(ltr)
      widget:dir(ltr)
        box#workspaces.horizontal.module:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        box#asd.horizontal:dir(ltr)
          widget:dir(ltr)
            label#custom-arrow.module:dir(ltr)
          revealer.drawer:dir(ltr)
            box.horizontal:dir(ltr)
              widget.drawer-child:dir(ltr)
                label#pulseaudio.module:dir(ltr)
              widget.drawer-child:dir(ltr)
                label#mpd.module:dir(ltr)
              widget.drawer-child:dir(ltr)
                box#tray.horizontal.module:dir(ltr)
              widget.drawer-child:dir(ltr)
                label#custom-reload.module:dir(ltr)

[2026-05-29 00:51:29.014] [debug] Creating workspace 1
[2026-05-29 00:51:29.015] [debug] Creating workspace 1
[2026-05-29 00:51:29.015] [debug] Set config persistency of workspace 1 to: true
[2026-05-29 00:51:29.015] [debug] Creating workspace 2
[2026-05-29 00:51:29.015] [debug] Creating workspace 3
[2026-05-29 00:51:29.015] [debug] Creating workspace 4
[2026-05-29 00:51:29.022] [info] Bar configured (width: 1920, height: 30) for output: DP-3
[2026-05-29 00:51:29.024] [debug] hyprland IPC received openlayer>>waybar
[2026-05-29 00:51:29.024] [debug] SNI tray id: disconnected
[2026-05-29 00:51:29.025] [debug] SNI tray id: TelegramDesktop
[2026-05-29 00:51:29.076] [debug] SNI tray id: equibop
[2026-05-29 00:51:29.076] [debug] SNI tray id: steam
[2026-05-29 00:51:29.093] [debug] Received SIGCHLD in signalThread
[2026-05-29 00:51:29.994] [debug] mpd: Connected to MPD
[2026-05-29 00:51:29.994] [debug] mpd: Disconnected: disabled interval timer.
[2026-05-29 00:51:29.994] [debug] mpd: Playing: enabled 1 second periodic timer.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions