{ "layer": "top", "position": "top", "height": 24, "spacing": 4, "modules-left": [ "sway/workspaces" ], "modules-center": [ "sway/window" ], "modules-right": [ "custom/media", "custom/updates", "custom/storage", "tray", "clock" ], "sway/workspaces": { "disable-scroll": false, "all-outputs": false, "format": "{name}" }, "sway/window": { "max-length": 128 }, "clock": { "format": "{:%m/%d/%Y %I:%M %p}", "tooltip-format": "{:%Y %B}\n{calendar}" }, "tray": { "spacing": 4 }, "custom/media": { "exec": "~/.config/waybar/mediaplayer.py --player spotify_player", "return-type": "json", "interval": 0, "on-click": "playerctl play-pause", "tooltip": false }, "custom/storage": { "exec": "~/.config/waybar/modules/storage.sh", "return-type": "json", "interval": 900, "format": "{}", "tooltip": false }, "custom/updates": { "exec": "~/.config/waybar/modules/update-check.sh", "interval": 900, "return-type": "json", "format": "{text}", "on-click": "kitty -e fish -ic 'update'", "on-output": "class: no-updates", "on-error": "class: updates-available", "tooltip": false } }