1
0
Fork 0
dotfiles/files/.config/waybar/config

80 lines
2.2 KiB
Plaintext

{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 23, // Waybar height (to be removed for auto height)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["clock", "network", "cpu", "memory", "battery", "backlight", "pulseaudio", "custom/vpn", "idle_inhibitor", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format": " {:%Y-%m-%d %H:%M}"
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": " {}%"
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"bat": "BAT0",
"format": " {icon} {capacity}%",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": " &lt;{essid}&gt; {ipaddr}/{cidr}",
"format-ethernet": " {ipaddr}/{cidr}",
"format-disconnected": "⚠ Disconnected"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": " --%",
"format-icons": {
"headphones": "",
"headset": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/vpn": {
"format": "{}",
"interval": 5,
"exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo  || echo "
}
}