dotfiles/.config/waybar/config

141 lines
3.5 KiB
JSON

{
"layer": "top",
"position": "top",
"height": 28,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "battery", "clock#date", "clock#time"],
"sway/workspaces": {
"all-outputs": false,
"format": "{name}",
"disable-scroll": true,
"disable-markup" : false
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>", // Icon: expand-arrows-alt
"tooltip": false
},
"sway/window": {
"max-length": 120,
"tooltip": false
},
"clock#time": {
"interval": 1,
"format": "{:%H:%M:%S %z}",
"tooltip": false
},
"clock#date": {
"interval": 10,
"format": " {:%a %d %b} ",
"tooltip": true,
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"sway/language": {
"format": "{short}",
"tooltip": false
},
"memory": {
"interval": 5,
"format": "{}%",
"states": {
"warning": 70,
"critical": 90
},
"on-click": "exec alacritty -e ytop"
},
"cpu": {
"interval": 5,
"format": "{usage:2}%",
"states": {
"warning": 70,
"critical": 90
}
},
"backlight": {
"interval": 10,
"device": "acpi_video1",
"format": "{percent}%{icon}",
"format-icons": ["☁️", "🌥️", "⛅", "☀️"]
},
"battery": {
"format": "{capacity}% {icon}",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "~{capacity}%",
"format-plugged": "🔌{capacity}%",
"interval": 30,
"states": {
"good": 85,
"warning": 30,
"critical": 15
},
"tooltip": false
},
"network": {
"format": "",
"format-wifi": "{icon}{essid} ({signalStrength}%)",
"format-ethernet": "{icon}<span foreground='#929292'>{ifname}</span>",
"format-alt": "{icon}<span foreground='#929292'>{ifname}:</span>{ipaddr}(/{cidr})",
"format-linked": "<span foreground='#ffbf00'>{ifname}</span> (No IP)",
"format-icons": {
"wifi": [""],
"ethernet": ["🖧"],
"disconnected": ["disconnected"]
},
"on-click-right": "nm-connection-editor",
"tooltip": false
},
"network#wireguard": {
"interface": "*wg*",
"format": "",
"format-wifi": "🐉",
"format-ethernet": "🐉",
"format-linked": "<span foreground='#ffbf00'>{ifname}:</span> (No IP)🐉",
"format-disconnected": "",
"format-alt": "<span foreground='#929292'>{ifname}:</span>{ipaddr}/{cidr}🐉",
"tooltip": false
},
"temperature": {
"format": "<span foreground='#929292'></span>{temperatureC}°C",
"thermal-zone": 2,
"critical-threshold": 53,
"format-critical": "<span foreground='#ff5c57'></span>{temperatureC}°C",
"interval": 10
},
"pulseaudio": {
"format": "{icon}{volume}% {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": {
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
"on-click-right": "blueman-manager",
"tooltip": false
},
"custom/storage": {
"format": "{percentage}%",
"format-alt": "{}",
"format-alt-click": "click",
"return-type": "json",
"interval": 40,
"exec": "~/.config/waybar/modules/storage.sh"
},
"tray": {
"icon-size": 18
},
// vim: ft=json ff=unix noexpandtab
}