{
"layer": "top",
"position": "bottom",
"height": 26,
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
"sway/mode",
"custom/mic",
"custom/yubikey",
"custom/services",
"sway/window"
],
"modules-center": [],
"modules-right": ["custom/khal", "battery", "pulseaudio", "tray", "clock"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": false,
"disable-scroll-wraparound": true,
"enable-bar-scroll": true,
"all-outputs": false,
"format": "{name} {icon}",
"format-icons": {
"focused": "",
"default": ""
}
},
"custom/mic": {
"exec": "$HOME/.local/lib/waybar-mic",
"return-type": "json",
"on-click": "pactl set-source-mute $(pactl get-default-source) toggle"
},
"custom/yubikey": {
"exec": "$HOME/.local/lib/waybar-yubikey",
"return-type": "json"
},
"custom/services": {
"interval": 10,
"exec": "$HOME/.local/lib/waybar-services",
"on-click": "pause status"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/window": {
"icon": false,
"tooltip": false
},
"custom/khal": {
"exec": "$HOME/.local/lib/waybar-khal",
"return-type": "json",
"on-click": "pause khal list now 24h"
},
"clock": {
"interval": 1,
"tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>",
"format": "{:%a %Y-%m-%d %X}"
},
"battery": {
"states": {
// Results in "format-full" being used.
"full": 100,
// Applies a CSS animation/alert.
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
// Plugged icon: ﮣ (doesn't render properly on my setup!?)
"format-plugged": " {capacity}%",
"format-alt": "{icon} {power}W {time}", // Toggled on click.
"format-full": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", "", ""]
// More icons in this range: ->
// More icons in this range: ->
// More icons in this range: ->
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}",
"format-bluetooth": "{icon} {volume}% ",
"format-bluetooth-muted": " ",
"format-muted": "",
"format-icons": {
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol",
"on-click-right": "blueman-manager"
}
}