82 lines
2.1 KiB
Text
82 lines
2.1 KiB
Text
[{
|
|
"layer": "bottom<",
|
|
"position": "top",
|
|
"height": 35,
|
|
// Space between modules
|
|
"spacing": 0,
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
"modules-center": [],
|
|
"modules-right": ["custom/update", "pulseaudio", "battery", "network", "clock", "custom/power"],
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "",
|
|
"6": "",
|
|
"7": "",
|
|
"8": "",
|
|
"9": "",
|
|
"10": "ﱘ",
|
|
}
|
|
},
|
|
"custom/update": {
|
|
"format": "累 {}",
|
|
"exec": "update-count",
|
|
"interval": 60,
|
|
"tooltip": false,
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"speaker": "墳",
|
|
"default": ["奄", "奔", "墳"]
|
|
},
|
|
"tooltip": false,
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"battery": {
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
|
"tooltip": false,
|
|
},
|
|
"network": {
|
|
"format-wifi": "直 {essid}",
|
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ",
|
|
"tooltip": false,
|
|
},
|
|
"clock": {
|
|
"format": " {:%F %H:%M:%S}",
|
|
"tooltip": false,
|
|
"interval": 1,
|
|
"on-click": "xdg-open https://www.kaderli.dev",
|
|
},
|
|
"custom/power": {
|
|
"format": " ",
|
|
"tooltip": false,
|
|
"on-click": "$XDG_BIN_HOME/power",
|
|
}
|
|
},
|
|
{
|
|
"layer": "bottom",
|
|
"position": "bottom",
|
|
"height": 35,
|
|
"spacing": 4,
|
|
"margin": "10px 0 0 0",
|
|
"modules-left": ["tray"],
|
|
"modules-center": [],
|
|
"modules-right": [],
|
|
"tray": {
|
|
"spacing": 10,
|
|
}
|
|
}
|
|
]
|