Custom Waybar configuration for Niri with Gruvbox theming. Part of MHashir09/My-Linux-Dotfiles.
Note
The README is outdated, I will update it soon once I will be free from my exams.
Note: I will be using Fedora so installation will be for fedora but you can refer to the official installation guide to find instructions for your own distribution.
sudo dnf install waybar# For additional modules
sudo dnf install pulseaudio pavucontrol # Audio control
sudo dnf install NetworkManager # Network module
sudo dnf install bluez bluez-tools # Bluetooth# Enable COPR repository for Nerd Fonts
sudo dnf copr enable atim/nerd-fonts
# Install JetBrainsMono Nerd Font
sudo dnf install nerd-fonts-jetbrains-monoAlternative font installation if not on fedora:
# Download manually from nerdfonts.com
mkdir ~/.fonts
cd ~/.fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/JetBrainsMono.zip
unzip JetBrainsMono.zip
fc-cache -fv- Gruvbox Dark color scheme
- System monitoring (CPU, Memory, Disk)
- PulseAudio integration
- Network status
- Battery indicator (for laptops)
- System tray
- Niri workspace integration
- Date and time
- Custom styling
# Clone this repository
git clone https://github.com/MHashir09/My-Linux-Dotfiles/tree/main/waybar/.config/waybar ~/.config/waybar
# Start Waybar
waybarIf installing as part of the main dotfiles setup:
# This is handled automatically by the main installation guide
# See: https://github.com/MHashir09/My-Linux-dotfiles~/.config/waybar/
├── config # Main configuration
├── modules.json # Modules configuration
├── colors.css # colors
├── style.css # Styling
├── scripts/ # Custom scripts
│ ├── main-menu.sh
│ ├── rofi-wifi-menu.sh
│ └── ...
└── README.md # This file
- Workspaces - Niri workspace indicator
- Clock - Date and time
- CPU - CPU usage
- Memory - RAM usage
- Network - Connection status
- PulseAudio - Volume control
- Battery - Battery status (if available)
- Tray - System tray icons
- Custom modules - Various custom scripts
To learn more about waybar customization read: Official Wiki.
Refer to official configuration guide.
Edit ~/.config/waybar/config
Refer to official modules guide.
Edit ~/.config/waybar/modules.json
Refer to your favorite color palette's site for colors.
Edit ~/.config/waybar/colors.css
Refer to official styling guide.
Edit ~/.config/waybar/style.css
To learn about shell scripting, refer to this beginner-friendly guide.
- Create script in
~/.config/waybar/scripts/ - Make executable:
chmod +x script-name.sh - Add to
modules.jsonor refer it wherever you wanna use it
Note: Not needed if you are using my niri config
Add to ~/.config/niri/config.kdl:
spawn-at-startup {
"waybar"
}Comment out modules you don't need in config and modules.json.
- Based on Waybar: https://github.com/Alexays/Waybar
- Gruvbox colors: https://github.com/morhetz/gruvbox
- Part of My-Linux-Dotfiles ( MHIA ): https://github.com/MHashir09/My-Linux-Dotfiles
Issues and pull requests are welcome! Please ensure your contributions:
- Follow Gruvbox color scheme
- Are compatible with Niri
- Work on Fedora (and mention if Fedora-specific)
- Include documentation for new features
Free to use and modify. No attribution required but appreciated!
