81 lines
2.3 KiB
Text
81 lines
2.3 KiB
Text
{
|
|
"layer": "top", // Waybar at top layer
|
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
// Choose the order of the modules
|
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
|
|
"modules-center": [],
|
|
"modules-right": ["custom/vpn", "network", "battery", "pulseaudio", "cpu", "temperature", "clock", "tray"],
|
|
// Module config
|
|
"sway/mode": {
|
|
"tooltip": false,
|
|
"format": "<span weight=\"bold\">{}</span>"
|
|
},
|
|
"temperature": {
|
|
"thermal-zone": 1,
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
"format-critical": "{temperatureC}°C ",
|
|
"format": "{temperatureC}°C "
|
|
},
|
|
"custom/vpn": {
|
|
// setup wireguard here
|
|
},
|
|
"network": {
|
|
"tooltip": false,
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
|
"format-linked": "{ifname} (No IP)",
|
|
"format-alt": "{ifname}: {ipaddr}",
|
|
"format-disconnected": "No internet"
|
|
},
|
|
"battery": {
|
|
"tooltip": false,
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% ",
|
|
"format-alt": "{time} ",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% "
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": ""
|
|
// "format-icons": ["", "", "", "", "", "", ""]
|
|
},
|
|
"pulseaudio": {
|
|
"tooltip": false,
|
|
"scroll-step": 1, // %, can be a float
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
"format-muted": "",
|
|
"format-source": "{volume}% {icon}",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"cpu": {
|
|
"interval": 5,
|
|
"tooltip": false,
|
|
"format": "{usage}% "
|
|
},
|
|
"clock": {
|
|
"tooltip": false,
|
|
"format": "{:%d.%m.%Y %H:%M}"
|
|
},
|
|
"tray": {
|
|
"tooltip": false,
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
}
|
|
}
|