improve eww
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
case "$1" in
|
||||
status)
|
||||
dunstctl is-paused
|
||||
;;
|
||||
# Pause / resume dunst notifications.
|
||||
case ${1:-} in
|
||||
status) dunstctl is-paused ;;
|
||||
*)
|
||||
if dunstctl is-paused | grep -q true; then
|
||||
dunstctl set-paused false
|
||||
echo false
|
||||
else
|
||||
dunstctl set-paused true
|
||||
echo true
|
||||
fi
|
||||
dunstctl set-paused toggle
|
||||
state=$(dunstctl is-paused)
|
||||
eww update do-not-disturb="$state" 2>/dev/null
|
||||
echo "$state"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user