diff --git a/bin/dunstctl b/bin/dunstctl deleted file mode 100755 index 0e649d1..0000000 --- a/bin/dunstctl +++ /dev/null @@ -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 -