dotfiles/dot_config/waybar/config.tmpl

148 lines
3.5 KiB
Cheetah
Raw Normal View History

2023-06-15 01:21:31 -04:00
{
2023-06-16 00:44:03 -04:00
{{- if eq .chezmoi.hostname "hydrus"}}
2023-06-15 01:21:31 -04:00
"output": "DP-1",
"position": "bottom",
2023-06-16 00:44:03 -04:00
{{- else }}
"output": "eDP-1",
"position": "top",
{{- end }}
"layer": "top",
2023-06-15 01:21:31 -04:00
"height": 24,
// "width": 1280,
"spacing": 4,
"modules-left": [
"river/mode",
"river/tags"
],
"modules-center": [
"river/window"
],
"modules-right": [
"idle_inhibitor",
2023-06-15 04:11:05 -04:00
"pulseaudio",
2023-06-15 01:21:31 -04:00
"network",
"cpu",
"memory",
"temperature",
"keyboard-state",
"clock",
"tray"
],
"keyboard-state": {
"numlock": false,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"river/mode": {
"format": "mode: {}"
},
"river/tags": {
2023-06-16 00:44:03 -04:00
//"tag-labels": ["1", "2", "3", "4", "5"],
//"num-tags": 5
2023-06-15 01:21:31 -04:00
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"clock": {
2023-06-15 04:11:05 -04:00
"format": "{:%H:%M}",
2023-06-15 01:21:31 -04:00
"timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
2023-06-15 04:11:05 -04:00
"tooltip": true
2023-06-15 01:21:31 -04:00
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
2023-06-15 04:11:05 -04:00
// "interface": "wlan0",
2023-06-15 01:21:31 -04:00
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
2023-06-15 04:11:05 -04:00
"scroll-step": 1,
2023-06-15 01:21:31 -04:00
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
2023-06-15 04:11:05 -04:00
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
2023-06-15 01:21:31 -04:00
},
}