2022-06-25 21:26:38 +08:00
|
|
|
{
|
|
|
|
"layer": "top",
|
|
|
|
"modules-left": [
|
2024-01-05 18:34:36 +08:00
|
|
|
"sway/workspaces"
|
2022-06-25 21:26:38 +08:00
|
|
|
],
|
|
|
|
"fixed-center": false,
|
|
|
|
"modules-center": [
|
2024-01-05 18:34:36 +08:00
|
|
|
"sway/window"
|
2022-06-25 21:26:38 +08:00
|
|
|
],
|
|
|
|
"modules-right": [
|
|
|
|
"tray",
|
|
|
|
"custom/notification",
|
|
|
|
"custom/player",
|
|
|
|
"cpu",
|
|
|
|
"memory",
|
|
|
|
"network",
|
|
|
|
"battery",
|
|
|
|
"clock"
|
|
|
|
],
|
2024-01-05 18:34:36 +08:00
|
|
|
"sway/workspaces": {
|
2023-11-15 11:25:03 +08:00
|
|
|
"show_special": true,
|
|
|
|
"on-click": "activate",
|
|
|
|
"persistent_workspaces": {
|
|
|
|
"9": ["HDMI-A-1"]
|
|
|
|
}
|
2023-10-10 21:24:00 +08:00
|
|
|
},
|
2024-01-05 18:34:36 +08:00
|
|
|
"sway/window": {
|
2023-10-10 21:24:00 +08:00
|
|
|
"max-length": 50,
|
|
|
|
"separate-outputs": true
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"cpu": {
|
2022-07-15 12:40:15 +08:00
|
|
|
"format": " {load}",
|
|
|
|
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"memory": {
|
2023-07-16 09:49:32 +08:00
|
|
|
"format": " {used:0.1f}G / {total:0.1f}G",
|
|
|
|
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format-wifi": " {essid} ({signalStrength}%)",
|
2023-07-16 09:49:32 +08:00
|
|
|
"format-ethernet": " {ifname}",
|
2022-07-15 12:40:15 +08:00
|
|
|
"format-linked": " {ifname}",
|
2023-07-16 09:49:32 +08:00
|
|
|
"format-disconnected": " Disconnected",
|
|
|
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
2022-07-15 12:40:15 +08:00
|
|
|
"tooltip-format": "{ifname} via {gwaddr}"
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
2022-11-30 14:10:00 +08:00
|
|
|
"good": 75,
|
|
|
|
"warning": 15,
|
|
|
|
"critical": 5
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"format": "{icon} {capacity}%",
|
2024-01-13 11:38:48 +08:00
|
|
|
"format-charging": " {capacity}%",
|
2022-06-25 21:26:38 +08:00
|
|
|
"format-plugged": " {capacity}%",
|
2022-07-15 12:40:15 +08:00
|
|
|
"format-alt": "{icon} ETA: {time}",
|
2022-06-25 21:26:38 +08:00
|
|
|
"format-icons": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"clock": {
|
2023-07-16 09:49:32 +08:00
|
|
|
"format": "{: %H:%M\t %m-%d}",
|
2022-07-15 12:40:15 +08:00
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"custom/notification": {
|
2022-07-15 12:40:15 +08:00
|
|
|
"tooltip": true,
|
2022-06-25 21:26:38 +08:00
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2022-07-15 12:40:15 +08:00
|
|
|
"notification": " <span foreground='red'><sup></sup></span> New notifications",
|
2022-06-25 21:26:38 +08:00
|
|
|
"none": " No notifications",
|
2022-07-15 12:40:15 +08:00
|
|
|
"dnd-notification": " DND on",
|
|
|
|
"dnd-none": " DND on"
|
2022-06-25 21:26:38 +08:00
|
|
|
},
|
|
|
|
"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": {
|
2023-07-16 09:49:32 +08:00
|
|
|
"format": " {}",
|
2022-06-25 21:26:38 +08:00
|
|
|
"return-type": "json",
|
2022-07-15 12:40:15 +08:00
|
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
2024-01-02 11:55:08 +08:00
|
|
|
"max-length": 35,
|
2024-01-13 11:38:48 +08:00
|
|
|
"on-click": "playerctl play-pause"
|
2022-06-25 21:26:38 +08:00
|
|
|
}
|
|
|
|
}
|