Waynot is a notification tool designed for use with Waybar, providing a seamless way to display notifications from the D-Bus notification system in a minimalist environment, such as Hyprland. It captures notification events and sends them to Waybar, updating the display in real-time.
To use Waynot, clone the repository and make the scripts executable:
git clone https://github.com/yourusername/waynot.git
cd waynot
chmod +x waynot waynot-daemon
You need to run the waynot-daemon
script to listen for notifications on D-Bus. You can configure this to run automatically when you start your session in Hyprland:
exec-once path/to/waynot-daemon &
Add the following configuration to your Waybar configuration file to integrate with Waynot:
"custom/waynot": {
"exec": "waynot post",
"format": "{}",
"return-type": "json",
"signal": 1
},
You can add custom styles for your notifications in your Waybar style.css
file:
#custom-waynot {
color: #ffffff;
animation-name: waynot;
animation-duration: 1000ms;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes waynot {
to {
color: #f3afa9;
}
}
- The
waynot-daemon
listens for notifications via D-Bus. - When a notification is received, it extracts the title and message.
- The information is then sent to the
waynot
script, which formats it and updates Waybar. - Notifications are automatically cleared after a defined timeout (default is 3 seconds).
You can customize the appearance and behavior of the notifications by modifying the TRUNC
variable in the waynot
script.