Replies: 5 comments 1 reply
-
I receive the same message with {
"layer": "top",
"margin-top": 6,
"margin-right": 10,
"margin-bottom": 0,
"margin-left": 10,
"spacing": 5,
"modules-left": [ "hyprland/workspaces", "hyprland/submap" ],
"modules-center": [ "clock" ],
"modules-right": [ "custom/spotify", "wireplumber", "backlight", "network", "battery" ],
"hyrpland/workspaces": {
"all-outputs": false,
"disable-scroll": true,
"on-click": "activate"
},
"hyprland/submap": {
"format": "R",
"tooltip": false
},
"clock": {
"format": "{:%H:%M }",
"format-alt": "{:%a, %b %dth %Y }",
"timezone": "America/Argentina/Cordoba",
"tooltip-format": "<big>{:%Y %B \t week: %V }</big>\n<tt>{calendar}</tt>"
},
"custom/spotify": {
"exec": "$HOME/.config/waybar/music.sh 2> /dev/null",
"exec-if": "pgrep '^spotify$'",
"format": "{}",
"on-click": "playerctl -p 'spotify' play-pause",
"on-click-right": "playerctl -p 'spotify' next",
"tooltip": false
},
"wireplumber": {
"format": "{volume}% ",
"format-muted": "Muted ",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"states": [ "", "" ]
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": [ "", "", "", "" ],
"on-click": "light -Ur 16",
"on-click-right": "light -Ar 16",
"on-scroll-down": "light -Ur 1",
"on-scroll-up": "light -Ar 1",
"tooltip": false
},
"network": {
"format-alt": "{essid} ({signalStrength}%) ",
"format-disconnected": "Disconnected ",
"format-wifi": "{essid} ",
"interface": "wlan*",
"tooltip": false
},
"battery": {
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-icons": [ "", "", "", "", "" ],
"states": {
"critical": 10
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Yes I am get this message along with
Here is my |
Beta Was this translation helpful? Give feedback.
-
To fix it just make sure you have the "window-rewrite" property set to an object. inside "hyprland/workspaces".
ExplanationI looked at the source code and found the root of the problem. What's basically happening is that whenever Waybar parses the config for "hyprland/workspaces" and it can't find the "window-rewrite" property in it, the it just defaults it to a string "?". Waybar/src/modules/hyprland/workspaces.cpp Lines 130 to 142 in 4c46d7d Which is not an object, as was expected, and therefore causes RegexCollection to print the warning when it is instantiated. Waybar/src/util/regex_collection.cpp Lines 10 to 17 in 4c46d7d I'm not really familiar with the codebase so I'm not going to try to fix this just wanted to put this here as a pointer if anyone else wanted to try to fix the code. |
Beta Was this translation helpful? Give feedback.
-
@ikalco thank you for looking at the source code. So I am looking at the man page I think they are both same modules but maybe documentation has been updated |
Beta Was this translation helpful? Give feedback.
-
@alekgr yeah I don't see waybar-hyprland-workspaces in my man pages either but it is in the github which makes me think it has something to do with Waybar's man pages not being installed fully. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I didn't find anyone mention this or any fixes for it. Just installed linux a few days ago, so I'm really new to all of this, might also be that I did something wrong in the installation process, but the problem occurs when I start waybar. I tried to follow arch wiki with the installation and other programs run fine so I'm guessing it's in waybar. When I start waybar, it says:
"[warning] Mapping is not an object"
No other warnings or errors atm, had a few but got them working/clear. No luck with this one though. Note that waybar opens and works, but after launch, terminal is "frozen" or stuck processing or whatever. I can exit with Ctrl+c but it shuts down waybar. Do you have any idea what this error is, or if there's a problem in my config?
(EDIT: Theres also this notification when opening waybar, maybe important maybe not)
[info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
OS: Arch Linux x86_64
Host: 82MS Yoga Slim 7 Pro 14ACH5
Kernel: 6.6.10-arch1-1
Shell: bash 5.2.21
Hyprland
Terminal: kitty
CPU: AMD Ryzen 5 5600H with Radeon Graphics (12) @ 4.280GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
my config file:
{
"layer": "top",
"position": "top", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// "mpd": {
// "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
// "format-disconnected": "Disconnected ",
// "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
// "unknown-tag": "N/A",
// "interval": 2,
// "consume-icons": {
// "on": " "
// },
// "random-icons": {
// "off": "<span color="#f53c3c"> ",
// "on": " "
// },
// "repeat-icons": {
// "on": " "
// },
// "single-icons": {
// "on": "1 "
// },
// "state-icons": {
// "paused": "",
// "playing": ""
// },
// "tooltip-format": "MPD (connected)",
// "tooltip-format-disconnected": "MPD (disconnected)"
// },
// "idle_inhibitor": {
// "format": "{icon}",
// "format-icons": {
// "activated": "",
// "deactivated": ""
// }
// },
// "tray": {
// // "icon-size": 21,
// "spacing": 10
// },
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
"thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
"format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
"device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}
}
Beta Was this translation helpful? Give feedback.
All reactions