{
"layer": "top",
"position": "top",
"height": 32,
"spacing": 0,
"modules-left": [
"hyprland/workspaces",
"custom/lock",
"custom/reboot",
"custom/power"
],
"modules-right": [
"network",
"battery",
"bluetooth",
"pulseaudio",
"backlight",
"custom/temperature",
"memory",
"cpu",
"clock"
],
"hyprland/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"format": "{icon}",
"on-click": "activate",
"persistent-workspaces": {
"*":[1,2,3,4]
},
"format-icons": {
"1": "",
"2": "",
"3": "",
"default": ""
}
},
"custom/lock": {
"format": " ",
"on-click": "hyprlock",
"tooltip": true,
"tooltip-format": "Lock"
},
"custom/reboot": {
"format": " ",
"on-click": "systemctl reboot",
"tooltip": true,
"tooltip-format": "Reload"
},
"custom/power": {
"format": " ",
"on-click": "systemctl poweroff",
"tooltip": true,
"tooltip-format": "Shutdown"
},
"network": {
"format-wifi": " {essid} ",
"format-ethernet": " Wired ",
"tooltip-format": " {bandwidthUpBytes} {bandwidthDownBytes}",
"format-linked": " {ifname} (No IP) ",
"format-disconnected": " Disconnected ",
"format-alt": " {signalStrength}% ",
"interval": 1
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": " {icon} {capacity}% ",
"format-charging": " {capacity}%",
"interval": 1,
"format-icons": ["", "", "", "", ""],
"tooltip": true
},
"pulseaudio": {
"format": "{icon}{volume}% ",
"format-muted": " 0% ",
"format-icons": {
"headphone": " ",
"hands-free": " ",
"headset": " ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [
" ",
" ",
" "
]
},
"on-click-right": "pavucontrol -t 3",
"on-click": "pactl -- set-sink-mute 0 toggle",
"tooltip": true,
"tooltip-format": "Volume: {volume}%"
},
"custom/temperature": {
"exec": "sensors | awk '/^Package id 0:/ {print int($4)}'",
"format": " {}°C ",
"interval": 5,
"tooltip": true,
"tooltip-format": "CPU temperature: {}°C"
},
"memory": {
"format": " {used:0.1f}G/{total:0.1f}G ",
"tooltip": true,
"tooltip-format": "memory used: {used:0.2f}G/{total:0.2f}G"
},
"cpu": {
"format": " {usage}% ",
"tooltip": true
},
"clock": {
"interval": 1,
"timezone": "Asia/Chengdu",
"format": " {:%H:%M} ",
"tooltip": true,
"tooltip-format": "{:L%Y y %m m %d d, %A}"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}{percent}% ",
"tooltip": true,
"tooltip-format": "backlight: {percent}%",
"format-icons": [
" ", // 暗 - 深灰
" ", // 中 - 灰
" ", // 亮 - 柠檬黄
" " // 最亮 - 金色
]
}
}