124 lines
3.5 KiB
Plaintext
Executable File
124 lines
3.5 KiB
Plaintext
Executable File
[
|
|
{
|
|
"name": "main",
|
|
"layer": "bottom",
|
|
"position": "bottom",
|
|
"height": 48,
|
|
"spacing": 4,
|
|
"output": "DP-2",
|
|
"margin-left": 800,
|
|
"margin-right": 800,
|
|
"modules-left": [
|
|
"wireplumber",
|
|
"disk",
|
|
"memory",
|
|
"cpu",
|
|
"custom/gpu",
|
|
"temperature"
|
|
],
|
|
"modules-center": ["hyprland/workspaces"],
|
|
"modules-right": [
|
|
"tray",
|
|
"custom/weather",
|
|
"network#ethernet",
|
|
"clock",
|
|
"custom/poweroff"
|
|
],
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "<b>{:%H:%M:%S}</b>",
|
|
"format-alt": "{:%Y-%m-%d}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
|
},
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
"interval": 5,
|
|
"tooltip": false
|
|
},
|
|
"disk": {
|
|
"format": " {}%",
|
|
"tooltip-format": "{used} / {total} used"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"memory": {
|
|
"format": " {}%",
|
|
"tooltip-format": "{used:0.1f}G / {total:0.1f}G used"
|
|
},
|
|
"temperature": {
|
|
"format": "{icon} {temperatureC}°C ",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"hwmon-path": "/sys/class/thermal/thermal_zone2/temp",
|
|
"critical-threshold": 80,
|
|
"interval": 5
|
|
},
|
|
"network#ethernet": {
|
|
"interface": "enp*",
|
|
"format-ethernet": "",
|
|
"format-wifi": "",
|
|
"format-linked": "",
|
|
"format-disconnected": "",
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
|
"on-click": "nm-connection-editor"
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"hyprland/workspaces": {
|
|
"format": "{icon}",
|
|
"sort-by-number": true,
|
|
"all-outputs": true,
|
|
"disable-scroll": true,
|
|
"active-only": false,
|
|
"format-icons": {
|
|
"default": "",
|
|
"persistent": "",
|
|
"active": ""
|
|
},
|
|
"persistent-workspaces": {
|
|
"1": [ ],
|
|
"2": [ ],
|
|
"3": [ ],
|
|
"4": [ ],
|
|
"5": [ ]
|
|
}
|
|
|
|
},
|
|
"wireplumber": {
|
|
"format": " {volume}%",
|
|
"format-muted": " 0%",
|
|
"on-click": "pavucontrol",
|
|
"on-click-right": "helvum",
|
|
"max-volume": 100,
|
|
"scroll-step": 5
|
|
},
|
|
"tray": {
|
|
"icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"custom/gpu": {
|
|
"format": " {}%",
|
|
"interval": 5,
|
|
"tooltip": false,
|
|
"exec": "nvidia-smi --query | grep Gpu | tail -1 | awk '{print $3}'"
|
|
},
|
|
"custom/poweroff": {
|
|
"tooltip": false,
|
|
"format": " ",
|
|
"on-click": "bash $HOME/.config/waybar/scripts/poweroff.sh"
|
|
},
|
|
"custom/weather": {
|
|
"exec": "$HOME/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
|
|
"return-type": "json",
|
|
"format": "{}",
|
|
"tooltip": true,
|
|
"interval": 600
|
|
}
|
|
}
|
|
]
|