Add do-not-disturb module

This commit is contained in:
2021-10-23 21:57:30 +03:00
parent 0f932888d1
commit 4b6644bc68
3 changed files with 16 additions and 0 deletions

8
bin/dnd Executable file
View File

@@ -0,0 +1,8 @@
#! /bin/bash
# Copied from https://github.com/Alexays/Waybar/wiki/Module:-Custom#dunst
COUNT=$(dunstctl count waiting)
ENABLED=
DISABLED=
if [ $COUNT != 0 ]; then DISABLED=" $COUNT"; fi
if dunstctl is-paused | grep -q "false" ; then echo $ENABLED; else echo $DISABLED; fi