Files
dotfiles/bin/blob-notification-bell
T

11 lines
305 B
Bash
Executable File

#!/bin/bash
# blob:summary=Print the bar bell for the notification centre as module JSON
# blob:hidden=true
if [[ $(blob-shell notifications dndState 2>/dev/null) == on ]]; then
printf '{"text":"","tooltip":"Notifications silenced"}\n'
else
printf '{"text":"","tooltip":"Notifications"}\n'
fi