Remove dunstctl, upstream includes it
This commit is contained in:
25
bin/dunstctl
25
bin/dunstctl
@@ -1,25 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
|
||||
_logfile="$XDG_RUNTIME_DIR/dunstctl.log"
|
||||
|
||||
log() {
|
||||
printf '[%s] %s\n' "$(date -uIseconds)" "$*" >> "$_logfile"
|
||||
}
|
||||
|
||||
case "$1 $2" in
|
||||
"set-paused false")
|
||||
log "Enabling dunst"
|
||||
systemctl --user --no-block kill --signal SIGUSR2 dunst
|
||||
|
||||
;;
|
||||
"set-paused true")
|
||||
log "Disabling dunst"
|
||||
systemctl --user --no-block kill --signal SIGUSR1 dunst
|
||||
;;
|
||||
*)
|
||||
>&2 printf 'Unknown command\n'
|
||||
exit 1
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user