{
"height": 30,
"spacing": 4,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-right": ["tray", "idle_inhibitor", "custom/scratchpad_indicator", "network", "cpu", "memory", "backlight", "pulseaudio", "battery", "clock"],
"custom/spotify": {
"exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify",
"format": "{}",
"return-type": "json",
"on-click": "playerctl play-pause",
"on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous"
},
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}{icon}",
"format-icons": {
"1": ": terminal",
"2": ": firefox",
"3": ": discord",
"4": ": spotify",
"5": ": thunderbird",
"default": ""
}
},
"tray": {
"spacing": 10
},
"custom/scratchpad_indicator": {
"interval": 3,
"exec": "swaymsg -t get_tree | ~/.config/waybar/scripts/scratchpads.py",
"format": " {} ",
"on-click": "swaymsg 'scratchpad show'",
"on-click-right": "swaymsg 'move scratchpad'"
},
"clock": {
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:%d/%m/%Y %H:%M:%S}",
"format-alt": "{:%Y-%m-%d}",
"timezone": "Europe/London",
"interval": 1
},
"battery": {
"interval": 1,
"states": {
"warning": 30,
"critical": 15,
},
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}% ",
"format-icons": [" ", " ", " ", " ", " "],
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": [" ", " "],
"on-scroll-up": "brightnessctl set +5",
"on-scroll-down": "brightnessctl set 5-"
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": " {used}/{total} GiB"
},
"network": {
"format-wifi": " {ipaddr} @ {essid} ({signalStrength}%)",
"format-ethernet": "歷 {ipaddr}",
"tooltip-format": " {ifname} via {gwaddr}",
"format-linked": "歷 {ifname} (No IP)",
"format-disconnected": "歷 Disconnected",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click-right": "alacritty -e /usr/bin/nmtui",
},
"pulseaudio": {
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": " {volume}% {format_source}",
"format-bluetooth-muted": " 0% {format_source}",
"format-muted": "婢0% {format_source}",
"format-source": " {volume}%",
"format-source-muted": " 0%",
"format-icons": {
"headphone": " ",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": " ",
"default": ["", " ", " "]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol",
"scroll-step": 0.5
},
"idle_inhibitor": {
"format": "{icon} ",
"format-icons": {
"activated": " ",
"deactivated": " "
}
}
}