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