2019-03-29 10:32:11 +01:00
|
|
|
[{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"output": "DP-5",
|
|
|
|
"position": "bottom", // Waybar at the bottom of your screen
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": ["tray"],
|
|
|
|
"modules-right": ["custom/arch", "pulseaudio", "network", "cpu", "memory", "battery", "clock"],
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": false,
|
|
|
|
"format": "{name}"
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"format": "{:%Y-%m-%d | %H:%M}",
|
|
|
|
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"cpu": {
|
2019-08-02 11:47:53 +02:00
|
|
|
"format": " {usage:3}%"
|
2019-03-29 10:32:11 +01:00
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": " {}%"
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{icon} {capacity}%",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
2019-08-02 11:47:53 +02:00
|
|
|
"interval": 5,
|
2019-03-29 10:32:11 +01:00
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
|
|
|
"format-ethernet": " {ifname}: {ipaddr}",
|
|
|
|
"format-disconnected": "⚠ Disconnected"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
//"scroll-step": 1,
|
|
|
|
"format": "{icon} {volume}%",
|
|
|
|
"format-bluetooth": "{icon} {volume}% ",
|
|
|
|
"format-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"custom/arch": {
|
|
|
|
"format": " {}",
|
|
|
|
"max-length": 40,
|
|
|
|
"interval": 300,
|
|
|
|
"exec": "$HOME/.config/waybar/scripts/updates-arch-combined.sh 2> /dev/null"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"output": "DP-4",
|
|
|
|
"position": "bottom", // Waybar at the bottom of your screen
|
|
|
|
"modules-left": ["sway/workspaces"],
|
|
|
|
"modules-center": [],
|
|
|
|
"modules-right": ["custom/spotify"],
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": false,
|
|
|
|
"format": "{name}"
|
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"format": " {}",
|
|
|
|
"max-length": 40,
|
|
|
|
"interval": 3,
|
|
|
|
"exec": "python $HOME/.config/waybar/scripts/spotify_status.py 2> /dev/null"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"output": "eDP-1",
|
|
|
|
"position": "bottom", // Waybar at the bottom of your screen
|
|
|
|
"modules-left": ["sway/workspaces"],
|
|
|
|
"modules-center": [],
|
|
|
|
"modules-right": [],
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": false,
|
|
|
|
"format": "{name}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|