1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

sxhkd/statusbar: added scripts for dunst dnd mode

This commit is contained in:
2024-04-06 00:34:38 +02:00
parent 0dbb415546
commit 53c8e1159f
7 changed files with 51 additions and 18 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/sh
notify-send -u low "dunst" "Do not disturb started"
dunstctl history-clear
dunstctl rule dnd_low enable
dunstctl rule dnd_normal enable
dunstctl rule sound_normal disable

View File

@@ -1,10 +0,0 @@
#!/bin/sh
dunstctl rule dnd_low disable
dunstctl rule dnd_normal disable
dunstctl rule sound_normal enable
hist_size=$(dunstctl history | jq '.data[0] | length')
for i in `seq $hist_size`; do
dunstctl history-pop
done
notify-send -u low "dunst" "Do not disturb stopped"