2021-08-16 22:21:31 +08:00
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"height": 24, // Waybar height (to be removed for auto height)
|
|
|
|
// Choose the order of the modules
|
2021-08-25 19:56:23 +08:00
|
|
|
"modules-left": ["sway/workspaces", "sway/window"],
|
2021-08-16 22:21:31 +08:00
|
|
|
"modules-center": [],
|
2021-09-03 11:43:21 +08:00
|
|
|
"modules-right": ["tray","custom/player","custom/weather","network","battery","clock"],
|
2021-08-16 22:21:31 +08:00
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"good": 80,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"battery#bat2": {
|
|
|
|
"bat": "BAT2"
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
|
|
"format-linked": "{ifname} (No IP) ",
|
|
|
|
"format-disconnected": "Disconnected ",
|
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
|
|
},
|
|
|
|
"custom/weather": {
|
2021-09-03 12:05:27 +08:00
|
|
|
"exec": "sleep 10 && curl 'wttr.in/?format=%t+(%f)+%c'",
|
2021-08-16 22:21:31 +08:00
|
|
|
"interval": 1800
|
2021-09-03 11:43:21 +08:00
|
|
|
},
|
|
|
|
"custom/player": {
|
|
|
|
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}'",
|
|
|
|
"interval": 10,
|
2021-09-03 12:11:55 +08:00
|
|
|
"on-click": "playerctl play-pause && notify-send `playerctl status` -t 1000"
|
2021-08-16 22:21:31 +08:00
|
|
|
}
|
|
|
|
}
|