Files
dotfiles/shared/.config/waybar/config
2025-11-11 13:15:25 -05:00

114 lines
2.9 KiB
Plaintext

{
"layer": "top",
"position": "top",
"height": 30,
"spacing": 8,
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "tray", "clock"],
"sway/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"format": "{name}"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", "📋"],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"sway/window": {
"format": "{}",
"max-length": 50,
"rewrite": {
"(.*) — Mozilla Firefox": "🌎 $1",
"(.*) - vim": " $1"
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "🔓",
"deactivated": "🔒"
}
},
"tray": {
"spacing": 10
},
"clock": {
"format": "🕐 {:%Y-%m-%d %H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "📅 {:%A, %B %d, %Y}"
},
"cpu": {
"format": "⚙ {usage}%",
"tooltip": false
},
"memory": {
"format": "💾 {}%"
},
"temperature": {
"thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
"format": "{icon} {temperatureC}°C",
"format-icons": ["❄", "🌡", "🔥"]
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["🔅", "🔆"]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "⚡ {capacity}%",
"format-plugged": "🔌 {capacity}%",
"format-alt": "{icon} {time}",
"format-icons": ["🪫", "🔋", "🔋", "🔋", "🔋"]
},
"network": {
"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": {
"format": "{icon} {volume}%",
"format-muted": "🔇 muted",
"format-icons": {
"headphone": "🎧",
"hands-free": "🎧",
"headset": "🎧",
"phone": "📱",
"portable": "📱",
"car": "🚗",
"default": ["🔈", "🔉", "🔊"]
},
"on-click": "pavucontrol"
}
}