Overview
SwayNC (Sway Notification Center) is a simple notification daemon with a GTK notification center for Wayland. It provides elegant notification popups and a centralized control center for managing notifications.Key Features
Control Center
Centralized notification panel with media controls and quick settings
Custom Styling
Fully customizable with CSS, integrated with theme system
Widget Support
MPRIS media controls, volume, buttons, and custom widgets
Do Not Disturb
Toggle DND mode to silence notifications
Configuration
SwayNC configuration is located at~/.config/swaync/config.json:
Position and Size
Notification Window
Notification Window
Control Center
Control Center
Timeout Settings
Different timeout durations based on urgency:Critical notifications stay visible longer to ensure important messages aren’t missed.
Widgets
SwayNC includes several built-in widgets in the control center:Widget Configuration
- Title Widget
- MPRIS Media
- DND Toggle
- Quick Actions
Styling
SwayNC uses CSS for styling, located at~/.config/swaync/style.css:
Theme Colors
Colors are automatically loaded from the theme system:@background- Notification background (80% opacity)@text- Text color@selected- Border and accent color@urgent- Critical notification border
The
colors/colors.css file is auto-generated by the theme selector and updates when you switch themes.Critical Notifications
Critical notifications have a distinctive red border:Usage
Toggle Notification Center
PressSUPER + N to toggle the notification center:
Command Line Controls
Notification Scripts
SwayNC supports custom scripts for notification actions:Custom Notification Example
Notification Visibility
Control which notifications are shown:MPRIS Media Controls
SwayNC includes built-in media player controls:- Display currently playing track
- Album artwork (96x96px)
- Play/pause button
- Next/previous track
- Progress bar
- Volume control
- Spotify
- VLC
- Firefox
- Chrome
- mpv
Custom Icons
SwayNC includes custom notification icons in~/.config/swaync/icons/:
- Volume icons (mute, low, mid, high)
- Brightness levels
- Microphone states
- Media controls
- Theme palette
- And more
Theme Integration
SwayNC automatically switches themes with the system:- Updates
colors/colors.css - Reloads the configuration
- Applies the new color scheme
No need to restart SwayNC when switching themes - it reloads automatically.
Keyboard Shortcuts
SwayNC supports keyboard navigation:- Arrow keys - Navigate notifications
- Enter - Activate notification action
- Delete - Dismiss notification
- Escape - Close control center
- D - Toggle Do Not Disturb
Configuration Files
Troubleshooting
Notifications not appearing
Notifications not appearing
Ensure SwayNC is running:If not running, start it:
Theme not updating
Theme not updating
Reload SwayNC configuration:Or restart the daemon:
MPRIS not showing media
MPRIS not showing media
Verify media player supports MPRIS:Check media is playing:
Custom icons not displaying
Custom icons not displaying
Verify icon paths in config.json and ensure PNG files exist:
Learn More
SwayNC Documentation
Official SwayNC documentation and configuration reference
Theme System
Learn how notifications integrate with themes