summaryrefslogtreecommitdiffstats
path: root/.local/bin/toggle_notifications.sh
blob: 6818728077d356cb188713e56c3f67125f7722a6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

if $(dunstctl is-paused); then
    dunstify --appname="notifications" --icon="chronometer-start" "here's what happened" -u low
    dunstctl set-paused false
else
    dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low
    sleep 2
    dunstctl set-paused true
fi