Awesome
A script for polybar to display rofications.
This script will display a bell icon if there are no rofifications. If there are rofifications, it will display a ringing bell icon with the number of rofifications next to it.
Screenshots:
Left-clicking the icon will spawn rofification-gui.
How to install
- Copy bin/rofication-status to ~/bin, make sure ~/bin is in your $PATH. We don't want the styles in the output, just the number of notifications.
- Copy the script in .config/polybar/scripts to ~/.config/polybar/scripts (or whatever location you prefer).
- Be sure to make both executable, and check that rofification-status gives the correct output (an integer).
- Add this to your polybar config:
[module/rofication-status] type = custom/script exec = ~/.config/polybar/scripts/rofication.sh click-left = ~/.config/polybar/scripts/rofication.sh --show &
- The icons used are from Material Design Icons, so make sure to install the font and name it in your polybar config:
font-3 = Material Design Icons:pixelsize=16;1
See also this blog post.