87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
{
|
|
"layer": "top", // Waybar at top layer
|
|
"height": 35, // Waybar height (to be removed for auto height)
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
"output": "DP-2",
|
|
"modules-left": ["wlr/taskbar"],
|
|
"modules-center": ["hyprland/workspaces"],
|
|
"modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock", "clock#clock2"],
|
|
"wlr/taskbar": {
|
|
"on-click": "activate",
|
|
"on-click-right": "close",
|
|
"format": "{icon} {title:.20}",
|
|
"all-outputs": true
|
|
},
|
|
"wireplumber": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"warp-on-scroll": false,
|
|
"format": "{name}"
|
|
},
|
|
"hyprland/window": {
|
|
"max-length": 50,
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock#clock2": {
|
|
"timezone": "Europe/Brussels",
|
|
"format": "{:%H:%M:%S}",
|
|
"interval": 1,
|
|
|
|
},
|
|
"clock": {
|
|
"timezone": "Europe/Brussels",
|
|
"format": "{:%Y-%m-%d}",
|
|
"interval": 3600,
|
|
|
|
},
|
|
"cpu": {
|
|
"format": "{max_frequency}GHz",
|
|
"tooltip": false,
|
|
"interval": 5
|
|
},
|
|
"cpu#cpu2": {
|
|
"format": "CPU {usage}%",
|
|
"tooltip": false,
|
|
"interval": 5
|
|
},
|
|
"custom/updates": {
|
|
"exec": "bash -c \"checkupdates | wc -l\"",
|
|
"on-click": "alacritty -e bash -c \"yay ; echo '\nDone, press any key to exit...' ; read\"",
|
|
"interval": 60,
|
|
"format": "{} ",
|
|
},
|
|
"memory": {
|
|
"interval": 5,
|
|
"format": "{used:0.2f}G"
|
|
},
|
|
"temperature": {
|
|
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"interval": 5,
|
|
"critical-threshold": 80,
|
|
// "format-critical": "{temperatureC}°C {icon}",
|
|
"format": "{temperatureC}°C",
|
|
// "format-icons": ["", "", ""]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon}",
|
|
"tooltip-format": "{capacity}% ({time})",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{capacity}% {time} {icon}",
|
|
"format-icons": [" ", " ", " ", " ", " "]
|
|
},
|
|
}
|