Update dunstctl for ubuntu compatibility
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user