108 lines
2 KiB
Plaintext
108 lines
2 KiB
Plaintext
// -*- mode: json -*-
|
|
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
|
|
"modules-left": [
|
|
"idle_inhibitor",
|
|
"clock",
|
|
"sway/workspaces",
|
|
"sway/mode"
|
|
],
|
|
// "modules-center": [
|
|
// ],
|
|
"modules-right": [
|
|
"pulseaudio",
|
|
"cpu",
|
|
"memory",
|
|
"battery",
|
|
"disk",
|
|
"network",
|
|
"tray"
|
|
],
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"clock": {
|
|
// "format": "{:%F %R (%a)}",
|
|
"format": "{:%F %R}",
|
|
// TODO
|
|
"tooltip": false
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume:2}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-muted": "mute",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"default": [
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"scroll-step": 5,
|
|
"on-click": "pamixer -t",
|
|
"on-click-right": "pavucontrol"
|
|
},
|
|
"memory": {
|
|
"interval": 5,
|
|
// "format": "phys {percentage}% swap {swapPercentage}%"
|
|
"format": "ram {percentage}%"
|
|
},
|
|
"cpu": {
|
|
"interval": 5,
|
|
"format": "cpu {usage:2}%"
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"disk": {
|
|
"interval": 5,
|
|
"format": "hdd {percentage_used:2}%",
|
|
"path": "/"
|
|
},
|
|
"tray": {
|
|
"icon-size": 20
|
|
},
|
|
|
|
"network": {
|
|
// "format": "{signalStrength} {essid} up {bandwidthUpBytes} down {bandwidthDownBytes}",
|
|
// "interface": "wlp3s0",
|
|
"format": "{ifname}",
|
|
"format-wifi": "wifi ↑ {bandwidthUpBytes} ↓ {bandwidthDownBytes}",
|
|
"format-ethernet": "{ipaddr}/{cidr} ↑ {bandwidthUpBytes} ↓ {bandwidthDownBytes}",
|
|
"format-disconnected": "net down", //An empty format will hide the module.
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
|
"tooltip-format-ethernet": "{ifname} ",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
// "max-length": 50
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon} ",
|
|
"format-icons": {
|
|
"inhibited": "",
|
|
"normal": ""
|
|
}
|
|
}
|
|
}
|
|
|