dotfiles/waybar/.config/waybar/config

92 lines
3 KiB
Plaintext

// vi: ft=json5
{
"layer": "top",
"position": "top",
"height": 36,
"modules-left": ["idle_inhibitor", "sway/workspaces", "custom/usb", "sway/mode"],
"modules-center": ["clock"],
"modules-right": ["network", "pulseaudio", "backlight", "cpu", "memory", "battery", "tray"],
"sway/workspaces": {
"disable-scroll": true
},
"sway/window": {
"max-length": 64
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"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
},
"memory": {
"format": "\uf538 {}%"
},
"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"
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"custom/usb": {
"format": "{} USB",
"exec": "${XDG_CONFIG_HOME:-$HOME/.config}/waybar/usb-status.sh",
"return-type": "json",
"interval": 1,
"on-click": "pkexec --disable-internal-agent usbctl temporary"
}
}