dotfiles/waybar/.config/waybar/config
2023-04-17 11:13:20 +02:00

100 lines
3.2 KiB
Plaintext

// vim: ft=jsonc
{
"layer": "top",
"position": "top",
"height": 36,
"modules-left": ["idle_inhibitor", "sway/workspaces", "mpris", "sway/mode"],
"modules-center": ["clock"],
"modules-right": ["network", "pulseaudio", "backlight", "memory", "cpu", "temperature", "battery", "tray"],
"sway/workspaces": {
"disable-scroll": true
},
"sway/mode": {
"format": "<i>{}</i>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "\uf06e", // eye
"deactivated": "\uf070" // eye-slash
},
"tooltip": false
},
"tray": {
"icon-size": 14,
"spacing": 8
},
"clock": {
"timezone": "Europe/Copenhagen",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:\uf783 %b %d %Y \uf017 %T}", // calendar-day, clock
"interval": 1
},
"cpu": {
"format": "\uf2db {usage}%", // microchip
"tooltip": true,
"interval": 5
},
"memory": {
"format": "\uf538 {}%",
"interval": 5
},
"battery": {
"states": {
"good": 95,
"warning": 20,
"critical": 10
},
"format": "{icon} {capacity}%",
"format-charging": "\uf5e7 {capacity}%", // charging-station
"format-plugged": "\uf1e6 {capacity}%", // plug
"format-alt": "{icon} {time}",
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"] // battery-empty, battery-quarter, battery-half, battery-three-quarters, battery-full
},
"network": {
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "\uf071 Disconnected" // exclamation-triangle
},
"pulseaudio": {
"scroll-step": 2, // %, can be a float
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{icon}  {volume}% {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": ["", "", ""]
},
"on-click": "/usr/bin/pavucontrol"
},
"mpris": {
"format": "{player_icon} <i>{artist} - {title}</i>",
"player-icons": {
"default": "\uf001",
"Spot": "\uf1bc"
},
"ignored-players": ["chromium", "firefox"]
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"temperature": {
"hwmon-path": "/tmp/temperature",
"critical-threshold": 80,
"format": "{icon} {temperatureC}°C",
"format-critical": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""],
"interval": 5
}
}