Reduce Waybar system info interval for PC

This commit is contained in:
Wekuz 2026-04-18 22:21:35 +03:00
parent 7eb4cbaa20
commit 60e74c6b77
Signed by: Wekuz
GPG key ID: 2E502F2AABD32DF9

View file

@ -6,7 +6,11 @@
"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": {
@ -41,18 +45,27 @@
"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": {
"interval": 5,
{{- 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,
@ -60,6 +73,7 @@
"format-critical": "{temperatureC}°C {icon}",
"format-icons": ["", "", "", "", ""],
},
{{- if eq .chezmoi.hostname "wkz-lapdog" }}
"battery": {
"interval": 10,
"states": {
@ -74,6 +88,7 @@
},
"tooltip-format": "{time}"
},
{{- end }}
"clock": {
"interval": 1,
"format": "{:%H:%M:%S}",