blob: e9f253eb5551b8153ec4fe6d6e6f244766740466 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
function update {
while :; do
curr_status=$(dunstctl is-paused)
if [[ "$curr_status" != "$prev_status" ]]; then
prev_status=$curr_status
if [[ "$curr_status" == "true" ]]; then
echo icon:/usr/share/icons/tabler-icon-bell-off.png
echo tooltip:Notifications OFF
else
echo icon:/usr/share/icons/tabler-icon-bell.png
echo tooltip:Notifications ON
fi
fi
sleep 0.2
done
}
update | \
yad --notification \
--listen \
--command="dunstctl set-paused toggle"
|