97 lines
3 KiB
Cheetah
97 lines
3 KiB
Cheetah
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 24,
|
|
"spacing": 2,
|
|
"modules-left": ["hyprland/workspaces"],
|
|
"modules-center": ["hyprland/window"],
|
|
{{- if eq .chezmoi.hostname "wkz-pc" }}
|
|
"modules-right": [ "network", "wireplumber", "cpu", "memory", "temperature", "clock" ],
|
|
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
|
|
"modules-right": [ "network", "wireplumber", "cpu", "memory", "temperature", "battery", "clock" ],
|
|
{{- end }}
|
|
|
|
"hyprland/workspaces": {
|
|
"workspace-taskbar": {
|
|
"enable": true,
|
|
"format": "{icon}",
|
|
"icon-size": 16,
|
|
"orientation": "horizontal",
|
|
},
|
|
"format": "{id} {windows}",
|
|
},
|
|
"hyprland/window": {
|
|
"icon": true,
|
|
"icon-size": 18,
|
|
},
|
|
"network": {
|
|
"interval": 15,
|
|
"format-wifi": "",
|
|
"format-ethernet": "",
|
|
"format-disconnected": "⚠",
|
|
"format-linked": "",
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
|
"tooltip-format-wifi": "{ifname}: {ipaddr}/{cidr}\n{essid} ({signalStrength}%)",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"tooltip-format-linked": "No IP"
|
|
},
|
|
"wireplumber": {
|
|
"format": "{volume}% {icon}",
|
|
"format-icons": ["", "", ""],
|
|
"format-muted": "{volume}% ",
|
|
"scroll-step": 0.2,
|
|
"on-click": "pavucontrol",
|
|
"reverse-scrolling": 1
|
|
},
|
|
"cpu": {
|
|
{{- if eq .chezmoi.hostname "wkz-pc" }}
|
|
"interval": 3,
|
|
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
|
|
"interval": 5,
|
|
{{- end }}
|
|
"format": "{usage}% "
|
|
},
|
|
"memory": {
|
|
{{- if eq .chezmoi.hostname "wkz-pc" }}
|
|
"interval": 3,
|
|
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
|
|
"interval": 5,
|
|
{{- end }}
|
|
"format": "{}% "
|
|
},
|
|
"temperature": {
|
|
{{- if eq .chezmoi.hostname "wkz-pc" }}
|
|
"interval": 3,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon2/temp3_input",
|
|
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
|
|
"interval": 5,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
|
|
{{- end }}
|
|
"critical-threshold": 70,
|
|
"format": "{temperatureC}°C {icon}",
|
|
"format-critical": "{temperatureC}°C {icon}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
},
|
|
{{- if eq .chezmoi.hostname "wkz-lapdog" }}
|
|
"battery": {
|
|
"interval": 10,
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-icons": {
|
|
"default": ["", "", "", ""],
|
|
"charging": ["", "", "", ""]
|
|
},
|
|
"tooltip-format": "{time}"
|
|
},
|
|
{{- end }}
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "{:%H:%M:%S}",
|
|
"tooltip-format": "{:%a %d/%m/%Y}"
|
|
}
|
|
}
|