Update dunstctl for ubuntu compatibility

This commit is contained in:
2022-05-02 20:41:57 +02:00
parent add0adb9a0
commit f2aafc1ba7

View File

@@ -52,10 +52,11 @@ reset_screen() {
lock_and_screen_off() { lock_and_screen_off() {
lock & lock &
_pid=$! _pid=$!
dunstctl set-paused true dunst_paused=$(dunstctl is-paused)
[[ "${dunst_paused}" != "true" ]] && dunstctl set-paused true
screen_off screen_off
wait $_pid wait $_pid
dunstctl set-paused false [[ "${dunst_paused}" != "true" ]] && dunstctl set-paused false
reset_screen reset_screen
} }