{ "exclusive": true, "reload_style_on_change": true, "position": "top", "margin-top": 0, "spacing": 0, "height": 0, "margin-bottom": 0, "modules-left": [ "niri/workspaces", "custom/separator", "tray", "custom/separator2", "custom/separator5", "custom/media", "custom/separator6" ], "modules-center": ["custom/separator", "custom/clock", "custom/separator2"], "modules-right": [ "custom/separator", "custom/separator3", "custom/kbd", "custom/separator3", "pulseaudio", "custom/separator3", "memory", "custom/separator2" ], "niri/workspaces": { "disable-scroll": true, "format": "{index}" }, "custom/separator": { "format": "[", "tooltip": false }, "custom/separator2": { "format": "]", "tooltip": false }, "custom/separator3": { "format": "󰿟", "tooltip": false }, "custom/separator5": { "exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"[\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'", "return-type": "json", "interval": 2, "format": "{}" }, "custom/separator6": { "exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"]\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'", "return-type": "json", "interval": 2, "format": "{}" }, "memory": { "interval": 2, "format": "RAM {used:0.1f} / {total:0.1f} GB", "on-click": "foot btop", "states": { "warning": 50, "critical": 80 } }, "custom/kbd": { "exec": "/home/seraphim/dotfiles-gentoo/.config/waybar/kbd-layout.sh", "tooltip": false }, "custom/clock": { "exec": "date +'%H:%M %p - %A, %b %d' | tr '[:upper:]' '[:lower:]'", "interval": 1, "tooltip": false }, "pulseaudio": { "justify": "center", "format": "vol {volume}%", "on-click": "foot wiremix", "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "tooltip-format": "Playing at {volume}%", "scroll-step": 5, "format-muted": "vol muted", "format-icons": { "headphone": "", "default": ["", "", ""] }, "states": { "warning": 50, "critical": 10 } }, "custom/media": { "format": "{}", "max-length": 30, "interval": 2, "exec": "playerctl metadata --format '{{ artist }} - {{ title }}' 2>/dev/null || echo \"\"", "on-click": "playerctl play-pause" }, "tray": { "icon-size": 14, "spacing": 3 }, "custom/analyze-theme": { "exec": "node /home/seraphim/dotfiles-gentoo/.config/waybar/custom/analyze-theme.js", "interval": 5, "tooltip": true, "format": "{}", "return-type": "json" } }