2021-08-16 22:21:31 +08:00
|
|
|
{
|
2021-09-20 09:52:45 +08:00
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"height": 24, // Waybar height (to be removed for auto height)
|
2022-03-29 18:02:47 +08:00
|
|
|
"modules-left": ["sway/workspaces"],
|
|
|
|
"modules-center": ["sway/window"],
|
|
|
|
"modules-right": ["custom/notification","tray","custom/player","network","battery","clock"],
|
2021-09-20 09:52:45 +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}"
|
|
|
|
},
|
2022-03-29 18:02:47 +08:00
|
|
|
"custom/notification": {
|
|
|
|
"tooltip": false,
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
|
|
"none": "",
|
|
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
|
|
"dnd-none": ""
|
|
|
|
},
|
|
|
|
"return-type": "json",
|
|
|
|
"exec-if": "which swaync-client",
|
|
|
|
"exec": "swaync-client -swb",
|
|
|
|
"on-click": "swaync-client -t -sw",
|
|
|
|
"on-click-right": "swaync-client -d -sw",
|
|
|
|
"escape": true
|
|
|
|
},
|
2021-09-20 09:52:45 +08:00
|
|
|
"custom/player": {
|
|
|
|
"escape": true,
|
2022-04-07 15:11:44 +08:00
|
|
|
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' | cut -c -48 || echo 'Stopped '",
|
2021-09-20 09:52:45 +08:00
|
|
|
"interval": 15,
|
2022-02-19 10:38:55 +08:00
|
|
|
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
|
2021-09-20 09:52:45 +08:00
|
|
|
}
|
2021-08-16 22:21:31 +08:00
|
|
|
}
|