{ "height": 30, // Waybar height (to be removed for auto height) "spacing": 4, // Gaps between modules (4px) "modules-left": ["wlr/workspaces"], "modules-center": [], "modules-right": ["custom/playerctl", "idle_inhibitor", "pulseaudio", "clock", "tray","custom/swaync"], "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { // "timezone": "America/New_York", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "pulseaudio": { "scroll-step": 5, "format": "{volume}% {icon} {format_source}", "format-muted": " {format_source}", "format-source": "", "format-source-muted": "", "format-icons": { "default": ["", "", ""] }, "on-click-middle": "pavucontrol", "on-click":"$XDG_CONFIG_HOME/waybar/mute-toggle.sh", "tooltip":false, "max-volume":150 }, "custom/playerctl": { "format": "{}", "on-click":"playerctl --player=spotify,%any play-pause", "on-click-right":"playerctl --player=spotify,%any next", "on-scroll-up":"playerctl --player=spotify,%any volume 0.05+", "on-scroll-down":"playerctl --player=spotify,%any volume 0.05-", "exec": "playerctl --player=spotify,%any -f '{{title}} - {{artist}}' metadata -F 2>/dev/null", "max-length":50, "tooltip":false }, "custom/swaync":{ "tooltip": false, "format": "{icon}", "format-icons": { "notification": "", "none": "", "dnd-notification": "", "dnd-none": "", "inhibited-notification": "", "inhibited-none": "", "dnd-inhibited-notification": "", "dnd-inhibited-none": "" }, "return-type": "json", "exec-if": "which swaync-client", "exec": "swaync-client -swb", "on-click": "swaync-client -t -sw", "on-click-right": "swaync-client -d -sw", "escape": true } } // vim:set filetype=jsonc :