Simple notifications from tiramisu in polybar or waybar
Simple script to display tiramisu notifications in polybar, waybar, and other bars.
This was inspired by polynotifications scripts (which did not work for me), but made in a more minimal way and is meant to work out of the box without special settings for tiramisu. At the moment there is no notification history, each notification is shown once and that's it.
Install tiramisu notification daemon. Make sure to delete other notification deamons (like dunst) from your system.
Download polytiramisu.sh
to ~/.config/polybar/scripts/
or any other folder and make it executable:
git clone https://github.com/anufrievroman/polytiramisu
cp polytiramisu/polytiramisu.sh $HOME/.config/polybar/scripts/
chmod =rwx $HOME/.config/polybar/scripts/polytiramisu.sh
Add this module in your polybar config (and verify the path):
modules-left = polytiramisu
[module/polytiramisu]
type = custom/script
# Path to where you put polytiramisu.sh:
exec = ~/.config/polybar/scripts/polytiramisu.sh
format = <label>
tail = true
Add this module in your waybar config (and verify the path):
"modules-left": ["custom/polytiramisu"],
"custom/polytiramisu": {
"format": "{} ",
"exec": "bash ~/.config/waybar/scripts/polytiramisu.sh",
},
To verify that notifications are working, send a test notification: notify-send "Test notification"
If you see no notifications, try these steps:
killall tiramisu
and restart the polybar.polytiramisu.sh
you can choose the character limit char_limit
and notification duration display_duration
.#source
, #summary
, and #body
in the line that says tiramisu -o '#summary #body' |
.use_nerd_font="true"
and adding corresponding lines (see examples in the script).format-font = 2
format-foreground = #ffffff
Or in waybar css file as:
#custom-polytiramisu {
font-size: 14px;
color: #ffffff;
}
I am not a professional developer and work on open-source projects in my free time. If you'd like to support the development, consider donations via buymeacoffee or cryptocurrencies:
bc1qpkzmutdqfxkce34skt09vll97s5smpa0r2tyzj
0x6f1Ce9cA181458Fc153a5f7cBF88044736C3b00C
0x40f22c372758E35C905458cAF8BB17f51ac133d1
ltc1qtu33qyv2xlzxda5mmrmk943zpksq8q75tuh85p