Waybar Configuration for niri
Complete guide to installing and configuring Waybar status bar for niri window manager on Fedora.
Waybar Installation & Configuration
# Install waybar for status bar
sudo dnf install -y waybar
# Note: Add 'spawn-at-startup "waybar"' to your niri config after creating it
# Create waybar config directory
mkdir -p ~/.config/waybar
# Create waybar configuration file at ~/.config/waybar/config
# Copy and paste the following content:
{
"layer": "top",
"position": "top",
"height": 30,
"spacing": 4,
"modules-left": ["custom/niri-workspaces"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "battery", "tray"],
"custom/niri-workspaces": {
"format": "{}",
"exec": "niri msg workspaces | jq -r '.[] | select(.is_active == true) | .name'",
"interval": 1
},
"clock": {
"timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"tray": {
"spacing": 10
}
}
Last updated on