2021-08-16 22:21:31 +08:00
|
|
|
{
|
2022-04-28 19:17:03 +08:00
|
|
|
"layer": "top",
|
|
|
|
"height": 30,
|
|
|
|
"modules-left": [
|
|
|
|
"sway/workspaces"
|
|
|
|
],
|
|
|
|
"modules-center": [
|
|
|
|
"sway/window"
|
|
|
|
],
|
|
|
|
"modules-right": [
|
|
|
|
"tray",
|
|
|
|
"custom/notification",
|
|
|
|
"custom/player",
|
|
|
|
"network",
|
|
|
|
"battery",
|
|
|
|
"clock"
|
|
|
|
],
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 50
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
|
|
|
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
|
|
|
|
"format-linked": " {ifname} (No IP)",
|
|
|
|
"format-disconnected": " Disconnected",
|
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"good": 80,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{icon} {capacity}%",
|
|
|
|
"format-charging": " {capacity}%",
|
|
|
|
"format-plugged": " {capacity}%",
|
|
|
|
"format-alt": "{icon} {time}",
|
|
|
|
"format-icons": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"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
|
|
|
|
},
|
|
|
|
"custom/player": {
|
|
|
|
"format": "{icon} {}",
|
|
|
|
"format-icons": {
|
|
|
|
"Playing": " ",
|
|
|
|
"Paused": " "
|
|
|
|
},
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
|
|
"max-length": 35,
|
|
|
|
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
|
|
|
|
}
|
2021-08-16 22:21:31 +08:00
|
|
|
}
|