nixos-config/dotfiles/sway-cave/waybar-config.jsonc

109 lines
2 KiB
Plaintext
Raw Permalink Normal View History

2025-01-28 10:01:00 +01:00
// -*- 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",
2025-01-28 19:11:51 +01:00
"interval": 10
2025-01-28 10:01:00 +01:00
// "max-length": 50
},
"idle_inhibitor": {
2025-01-28 13:03:50 +01:00
"format": "{icon} ",
2025-01-28 10:01:00 +01:00
"format-icons": {
2025-02-01 22:46:26 +01:00
"activated": "",
"deactivated": ""
2025-01-28 10:01:00 +01:00
}
}
}