You are not logged in.

#1 2026-01-01 22:22:12

BrentCabbage
Member
Registered: 2026-01-01
Posts: 6

Waybar Json Value error after update

Error Message:

[2026-01-01 14:18:56.768] [info] Using configuration file /home/Cabbage/.config/waybar/config.jsonc
[2026-01-01 14:18:56.768] [error] in Json::Value::resolveReference(key, end): requires objectValue

Json file in /home/Cabbage/.config/waybar/config.jsonc:

"layer": "top",
  "position": "top",
  "margin-bottom": -10,
  "spacing" : 0,
  "modules-left": [
  "hyprland/workspaces",
  "custom/uptime",
  "cpu"
  ],

  "modules-center": ["clock"],

  "modules-right": [
    "custom/pomodoro",
    "network",
    "pulseaudio",
    "backlight",
    "battery"
  ],

  "hyprland/workspaces": {
    "format": "{name}: {icon}",
    "format-icons": {
      "active": "",
      "default": ""
    }
  },

  "bluetooth": {
    "format": "?",
    "format-on": "{icon}",
    "format-off": "{icon}",
    "format-connected":"{icon}",
    "format-icons":{
        "on":"?",
        "off": "?",
        "connected": "?"
        },
    "on-click": "blueman-manager",
    "tooltip-format-connected":"{device_enumerate}"
  },

  "custom/music": {
    "format": "  {}",
    "escape": true,
    "interval": 5,
    "tooltip": false,
    "exec": "playerctl metadata --format='{{ artist }} - {{ title }}'",
    "on-click": "playerctl play-pause",
    "max-length": 50
  },

  "clock": {
    "timezone": "US/Pacific",
    "tooltip": false,
    "format": "{:%H:%M  -  %A, %d}",
    "interval": 1
  },

  "network": {
    "format-wifi": "?",
    "format-ethernet": "? ",
    "format-disconnected": "? ",
    "interval": 5,
    "tooltip-format": "{essid} ({signalStrength}%)",
    "on-click": "nm-connection-editor"

},

  "cpu": {
    "interval": 1,
    "format": "  {icon0}{icon1}{icon2}{icon3} {usage:>2}%",
    "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
    "on-click": "ghostty -e htop"
  },

  "memory": {
    "interval": 30,
    "format": "  {used:0.1f}G/{total:0.1f}G",
    "tooltip-format": "Memory"
  },

  "custom/uptime": {
    "format": "{}",
    "format-icon": [""],
    "tooltip": false,
    "interval": 1600,
    "exec": "$HOME/.config/waybar/scripts/uptime.sh"
  },
 
  "backlight": {
        "format": "{icon}  {percent}%",
        "format-icons": ["","?", "?", "?","?","?","?"],
        "tooltip": false
  },
 
  "pulseaudio": {
    "format": "{icon}  {volume}%",
    "format-muted": "",
    "format-icons": {
      "default": ["", "", " "]
    },
    "on-click": "pavucontrol"
  },

  "battery": {
        "interval":2,
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}  {capacity}%",
        "format-full": "{icon}  {capacity}%",
        "format-charging": " {capacity}%",
        "format-plugged": " {capacity}%",
        "format-alt": "{icon} {time}",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": ["", "", "", "", ""]
  },
 
  "custom/lock": {
  "tooltip": false,
  "on-click": "sh -c '(sleep 0s; hyprlock)' & disown",
  "format" : ""
  },

  "custom/pomodoro": {
    "format": "{}",
    "return-type": "json",
    "exec": "waybar-module-pomodoro --no-work-icons",
    "on-click": "waybar-module-pomodoro toggle",
    "on-click-right": "waybar-module-pomodoro reset"
  }

}

Offline

#2 2026-01-01 22:54:41

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,351
Website

Re: Waybar Json Value error after update

Please use code tags, not quote tags, for terminal output and configuration file content.

https://wiki.archlinux.org/title/Genera … s_and_code


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2026-01-02 04:12:19

BrentCabbage
Member
Registered: 2026-01-01
Posts: 6

Re: Waybar Json Value error after update

@WorMzy will do, thanks.

Offline

#4 2026-01-02 06:38:23

BrentCabbage
Member
Registered: 2026-01-01
Posts: 6

Re: Waybar Json Value error after update

I've figured it out. This JSON update no longer supports the ability to comment out lines with # or //.

You need to remove these if present in your config.

Offline

Board footer

Powered by FluxBB