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

79 lines
2.2 KiB
Plaintext
Raw Normal View History

2019-05-09 21:37:18 +00:00
{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
2019-05-09 22:48:05 +00:00
"height": 23, // Waybar height (to be removed for auto height)
2019-05-09 21:37:18 +00:00
// 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": true,
"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": {
2019-05-09 22:12:09 +00:00
"format": " {usage}%",
2019-05-09 21:37:18 +00:00
"tooltip": false
},
"memory": {
"format": " {}%"
},
"backlight": {
"format": "{icon} {percent}%",
2019-05-09 22:12:09 +00:00
"format-icons": ["", "", ""]
2019-05-09 21:37:18 +00:00
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": " {icon} {capacity}%",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": " &lt;{essid}&gt; {ipaddr}/{cidr}",
2019-05-09 22:12:09 +00:00
"format-ethernet": " {ipaddr}/{cidr}",
2019-05-09 21:37:18 +00:00
"format-disconnected": "⚠ Disconnected"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{icon} {volume}%",
2019-05-09 22:12:09 +00:00
"format-bluetooth": "{icon} {volume}%",
2019-05-09 22:48:05 +00:00
"format-muted": " --%",
2019-05-09 21:37:18 +00:00
"format-icons": {
2019-05-09 22:12:09 +00:00
"headphones": "",
"headset": "",
"default": ["", "", ""]
2019-05-09 21:37:18 +00:00
},
"on-click": "pavucontrol"
},
"custom/vpn": {
"format": "{}",
"interval": 5,
2019-05-09 22:12:09 +00:00
"exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo  || echo "
2019-05-09 21:37:18 +00:00
}
}