97 lines
2.8 KiB
Plaintext
97 lines
2.8 KiB
Plaintext
{
|
|
"layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar at the bottom of your screen
|
|
// "height": 30, // Waybar height
|
|
// "width": 1280, // Waybar width
|
|
// Choose the order of the modules
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"],
|
|
"modules-center": ["sway/window"],
|
|
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "backlight", "battery", "battery#bat2", "clock", "tray"],
|
|
// Modules configuration
|
|
// "sway/workspaces": {
|
|
// "disable-scroll": true,
|
|
// "all-outputs": true,
|
|
// "format": "{name}: {icon}",
|
|
// "format-icons": {
|
|
// "1": "",
|
|
// "2": "",
|
|
// "3": "",
|
|
// "4": "",
|
|
// "5": "",
|
|
// "urgent": "",
|
|
// "focused": "",
|
|
// "default": ""
|
|
// }
|
|
// },
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"tooltip-format": "{:%Y-%m-%d | %H:%S}"
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% "
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": ["", ""]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-disconnected": "Disconnected ⚠"
|
|
},
|
|
"pulseaudio": {
|
|
//"scroll-step": 1,
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/spotify": {
|
|
"format": " {}",
|
|
"max-length": 40,
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
|
}
|
|
}
|