From f2aafc1ba7ecdb7fb2c4f49ce01b5a375da2bed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 2 May 2022 20:41:57 +0200 Subject: [PATCH] Update dunstctl for ubuntu compatibility --- i3/scripts/i3exit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/i3/scripts/i3exit b/i3/scripts/i3exit index 500f3a1..4167d7e 100755 --- a/i3/scripts/i3exit +++ b/i3/scripts/i3exit @@ -52,10 +52,11 @@ reset_screen() { lock_and_screen_off() { lock & _pid=$! - dunstctl set-paused true + dunst_paused=$(dunstctl is-paused) + [[ "${dunst_paused}" != "true" ]] && dunstctl set-paused true screen_off wait $_pid - dunstctl set-paused false + [[ "${dunst_paused}" != "true" ]] && dunstctl set-paused false reset_screen }