dotfiles/dot_config/waybar/executable_config.jsonc.tmpl

82 lines
2.4 KiB
Cheetah

// -*- mode: jsonc -*-
{
"layer": "top",
"position": "top",
"height": 24,
"spacing": 2,
"modules-left": ["hyprland/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": [ "network", "wireplumber", "cpu", "memory", "temperature", "battery", "clock" ],
"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": {
"interval": 5,
"format": "{usage}% "
},
"memory": {
"interval": 5,
"format": "{}% "
},
"temperature": {
"interval": 5,
{{- if eq .chezmoi.hostname "wkz-pc" }}
"hwmon-path": "/sys/class/hwmon/hwmon2/temp3_input",
{{- else if eq .chezmoi.hostname "wkz-lapdog" }}
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
{{- end }}
"critical-threshold": 70,
"format": "{temperatureC}°C {icon}",
"format-critical": "{temperatureC}°C {icon}",
"format-icons": ["", "", "", "", ""],
},
"battery": {
"interval": 10,
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-plugged": "{capacity}% 󰚥",
"format-icons": {
"default": ["󰂎", "󱊡", "󱊢", "󱊣"],
"charging": ["󰢟", "󱊤", "󱊥", "󱊦"]
},
"tooltip-format": "{time}"
},
"clock": {
"interval": 1,
"format": "{:%H:%M:%S}",
"tooltip-format": "{:%a %d/%m/%Y}"
}
}