72 lines
2.3 KiB
Plaintext
72 lines
2.3 KiB
Plaintext
[{
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
|
"modules-right": ["pulseaudio", "memory", "cpu", "battery", "network", "custom/pacman", "clock", "tray"],
|
|
"memory": {
|
|
"format": "\uf538 {used:0.1f}GiB",
|
|
},
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": "\uf017 {:%A %d/%m/%Y %H:%M}"
|
|
},
|
|
"cpu": {
|
|
"format": "\uf2db {usage}%",
|
|
"tooltip": false
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": "\uf1eb {essid}",
|
|
"format-ethernet": "\uf6ff {ifname}",
|
|
"tooltip-format": "\f6ff {ifname} via {gwaddr}",
|
|
"format-linked": "\uf6ff {ifname} (No IP)",
|
|
"format-disconnected": "\uf071 Disconnected",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth-muted": "{icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/pacman": {
|
|
"format": "{icon} {}",
|
|
"return-type": "json",
|
|
"escape": true,
|
|
"format-icons": {
|
|
"uptodate": "\uf00c",
|
|
"available": "\uf019"
|
|
},
|
|
"interval": 600,
|
|
"exec": "$HOME/.config/waybar/pacman.py '(?:^(?:linux-|sway|wl)|pipewire)' 2> /dev/null"
|
|
}
|
|
}]
|
|
|