2019-07-29 00:53:40 +02:00
|
|
|
{
|
|
|
|
"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": [],
|
2021-06-17 09:49:51 +02:00
|
|
|
"modules-right": ["network", "battery", "pulseaudio", "backlight", "cpu", "memory", "temperature", "custom/layout", "clock", "tray"],
|
2019-07-29 00:53:40 +02:00
|
|
|
// Module config
|
|
|
|
"sway/mode": {
|
|
|
|
"tooltip": false,
|
|
|
|
"format": "<span weight=\"bold\">{}</span>"
|
|
|
|
},
|
2019-07-29 11:53:54 +02:00
|
|
|
"temperature": {
|
|
|
|
"thermal-zone": 1,
|
|
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
|
|
"critical-threshold": 80,
|
2020-10-18 20:22:34 +02:00
|
|
|
"format-critical": " {temperatureC}°C",
|
|
|
|
"format": " {temperatureC}°C"
|
2019-07-29 11:53:54 +02:00
|
|
|
},
|
2019-07-29 00:53:40 +02:00
|
|
|
"custom/vpn": {
|
2019-08-01 17:56:53 +02:00
|
|
|
// setup wireguard here
|
2019-07-29 00:53:40 +02:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"tooltip": false,
|
|
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
2020-10-18 20:22:34 +02:00
|
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
2019-07-29 00:53:40 +02:00
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
|
|
|
"format-linked": "{ifname} (No IP)",
|
|
|
|
"format-alt": "{ifname}: {ipaddr}",
|
|
|
|
"format-disconnected": "No internet"
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"tooltip": false,
|
|
|
|
"states": {
|
2019-07-29 16:31:50 +02:00
|
|
|
"good": 95,
|
2019-07-29 00:53:40 +02:00
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2020-10-18 20:22:34 +02:00
|
|
|
"format": " {capacity}%",
|
2019-08-05 12:43:28 +02:00
|
|
|
"format-alt": "{time} ",
|
2020-10-23 20:36:51 +02:00
|
|
|
"format-charging": " {capacity}%",
|
|
|
|
"format-plugged": " {capacity}%"
|
2019-07-29 00:53:40 +02:00
|
|
|
// "format-good": "", // An empty format will hide the module
|
2019-07-29 16:31:50 +02:00
|
|
|
// "format-full": ""
|
|
|
|
// "format-icons": ["", "", "", "", "", "", ""]
|
2019-07-29 00:53:40 +02:00
|
|
|
},
|
2021-06-17 09:49:51 +02:00
|
|
|
"backlight": {
|
|
|
|
"device": "amdgpu_bl0",
|
|
|
|
"format": "{icon} {percent}%",
|
|
|
|
"format-icons": ["", ""]
|
|
|
|
},
|
2019-07-29 00:53:40 +02:00
|
|
|
"pulseaudio": {
|
2020-10-18 20:22:34 +02:00
|
|
|
"tooltip": true,
|
2020-08-08 04:02:33 +02:00
|
|
|
"scroll-step": 1, // %, can be a float
|
2020-10-18 20:22:34 +02:00
|
|
|
"format": "{icon} {volume}%",
|
2019-07-29 00:53:40 +02:00
|
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
|
|
"format-muted": "",
|
2020-10-18 20:22:34 +02:00
|
|
|
"format-source": "{volume}%",
|
2019-07-29 00:53:40 +02:00
|
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
2020-08-08 04:02:33 +02:00
|
|
|
"headphones": "",
|
2019-07-29 00:53:40 +02:00
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
2021-06-17 09:49:51 +02:00
|
|
|
//
|
|
|
|
"default": [""]
|
2019-07-29 00:53:40 +02:00
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"interval": 5,
|
|
|
|
"tooltip": false,
|
2020-10-18 20:22:34 +02:00
|
|
|
"format": " {usage}%"
|
2019-07-29 00:53:40 +02:00
|
|
|
},
|
2021-06-17 09:49:51 +02:00
|
|
|
"memory": {
|
|
|
|
"format": " {}%"
|
|
|
|
},
|
|
|
|
"custom/layout": {
|
|
|
|
"exec": "~/.config/waybar/keyboard-layout.py",
|
|
|
|
"return-type": "json",
|
|
|
|
"format": "| <span color='#ef9f33'>{}</span>"
|
|
|
|
},
|
2019-07-29 00:53:40 +02:00
|
|
|
"clock": {
|
|
|
|
"tooltip": false,
|
2020-10-18 20:22:34 +02:00
|
|
|
"format": "| {:%d.%m.%Y %H:%M}"
|
2019-07-29 00:53:40 +02:00
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"tooltip": false,
|
2021-06-17 09:49:51 +02:00
|
|
|
"icon-size": 18,
|
|
|
|
"spacing": 5
|
2019-07-29 00:53:40 +02:00
|
|
|
}
|
|
|
|
}
|