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

waybar crashes after starting #2506

Closed
jack9603301 opened this issue Sep 13, 2023 · 5 comments
Closed

waybar crashes after starting #2506

jack9603301 opened this issue Sep 13, 2023 · 5 comments

Comments

@jack9603301
Copy link

jack9603301 commented Sep 13, 2023

I'm launching waybar using the following configuration, but it seems to crash automatically

{
    "layer": "top", 
    "position": "bottom",
    "height": 30,
    "spacing": 10,
    // Choose the order of the modules
    "modules-left": ["hyprland/workspaces"],
    "modules-center": [],
    "modules-right": ["custom/login", "custom/pipewire", "cpu", "memory", "temperature", "backlight", "clock", "tray"],
    "hyprland/workspaces": {
        "format": "{name}",
        "on-scroll-up": "hyprctl dispatch workspace e+1",
        "on-scroll-down": "hyprctl dispatch workspace e-1",
        "on-click": "activate"
    },
    "custom/login": {
        "exec": "echo \"$(whoami)@$(hostname)\"",
        "interval": "1s",
        "singal": 9,
        "return-type": "text"
    },

    "custom/pipewire": {
        "exec": "pamixer --get-volume",
        "return-type": "text",
        "format": " {icon} {}%",
        "signal": 8,
        "interval": 1,
        "on-scroll-up": "pamixer -i 5",
        "on-scroll-down": "pamixer -d 5",
        "on-click": "pavucontrol",
        "format-icons": {
            "mute": "",
            "default": ["", "", ""]
        }
    },
    "tray": {
        "icon-size": 21,
        "spacing": 10,
        "interval": 2
    },
    "clock": {
        "timezone": "Asia/Shanghai",
        "tooltip-format": "<big>󱫚 {:%Y %B}</big>\n<tt><small>󱫚 {calendar}</small></tt>",
        "format-alt": "󱫚 {:%Y-%m-%d}",
        "format": "󱫚 {:%H:%M}",
    },
    "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": "{icon} {temperatureC}°C",
        "format-icons": ["", "", ""]
    },
    "backlight": {
        // "device": "acpi_video1",
        "format": "{percent}% {icon}",
        "format-icons": ["", "", "", "", "", "", "", "", ""]
    }
}

Where is the problem? There seems to be an error in the latest mainline of git.

@zjeffer
Copy link
Contributor

zjeffer commented Sep 13, 2023

Did this fix it by any chance? #2507

@jack9603301
Copy link
Author

Did this fix it by any chance? #2507
Let me test it!

@jack9603301
Copy link
Author

@zjeffer Bug fixes

@khaneliman
Copy link
Contributor

@jack9603301 is this resolved for you?

@jack9603301
Copy link
Author

@khaneliman Yes, the problem has been solved and can be closed

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

3 participants