dotfiles/.config/waybar/config

96 lines
2.6 KiB
Plaintext
Raw Normal View History

{
"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"],
// 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,
2020-10-18 20:22:34 +02:00
"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
2020-10-18 20:22:34 +02:00
"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": {
2019-07-29 16:31:50 +02:00
"good": 95,
"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}%"
// "format-good": "", // An empty format will hide the module
2019-07-29 16:31:50 +02:00
// "format-full": ""
// "format-icons": ["", "", "", "", "", "", ""]
},
2021-06-17 09:49:51 +02:00
"backlight": {
"device": "amdgpu_bl0",
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"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}%",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
2020-10-18 20:22:34 +02:00
"format-source": "{volume}%",
"format-source-muted": "",
"format-icons": {
2020-08-08 04:02:33 +02:00
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
2021-06-17 09:49:51 +02:00
// 
"default": [""]
},
"on-click": "pavucontrol"
},
"cpu": {
"interval": 5,
"tooltip": false,
2020-10-18 20:22:34 +02:00
"format": " {usage}%"
},
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>"
},
"clock": {
"tooltip": false,
2020-10-18 20:22:34 +02:00
"format": "| {:%d.%m.%Y %H:%M}"
},
"tray": {
"tooltip": false,
2021-06-17 09:49:51 +02:00
"icon-size": 18,
"spacing": 5
}
}