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, "spacing": 2,
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["hyprland/window"], "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" ], "modules-right": [ "network", "wireplumber", "cpu", "memory", "temperature", "battery", "clock" ],
{{- end }}
"hyprland/workspaces": { "hyprland/workspaces": {
"workspace-taskbar": { "workspace-taskbar": {
@ -41,18 +45,27 @@
"reverse-scrolling": 1 "reverse-scrolling": 1
}, },
"cpu": { "cpu": {
{{- if eq .chezmoi.hostname "wkz-pc" }}
"interval": 3,
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
"interval": 5, "interval": 5,
{{- end }}
"format": "{usage}% " "format": "{usage}% "
}, },
"memory": { "memory": {
{{- if eq .chezmoi.hostname "wkz-pc" }}
"interval": 3,
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
"interval": 5, "interval": 5,
{{- end }}
"format": "{}% " "format": "{}% "
}, },
"temperature": { "temperature": {
"interval": 5,
{{- if eq .chezmoi.hostname "wkz-pc" }} {{- if eq .chezmoi.hostname "wkz-pc" }}
"interval": 3,
"hwmon-path": "/sys/class/hwmon/hwmon2/temp3_input", "hwmon-path": "/sys/class/hwmon/hwmon2/temp3_input",
{{- else if eq .chezmoi.hostname "wkz-lapdog" }} {{- else if eq .chezmoi.hostname "wkz-lapdog" }}
"interval": 5,
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
{{- end }} {{- end }}
"critical-threshold": 70, "critical-threshold": 70,
@ -60,6 +73,7 @@
"format-critical": "{temperatureC}°C {icon}", "format-critical": "{temperatureC}°C {icon}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
}, },
{{- if eq .chezmoi.hostname "wkz-lapdog" }}
"battery": { "battery": {
"interval": 10, "interval": 10,
"states": { "states": {
@ -74,6 +88,7 @@
}, },
"tooltip-format": "{time}" "tooltip-format": "{time}"
}, },
{{- end }}
"clock": { "clock": {
"interval": 1, "interval": 1,
"format": "{:%H:%M:%S}", "format": "{:%H:%M:%S}",