Install the lock screen PAM stack and replace the missing screensaver effects
This commit is contained in:
@@ -20,7 +20,8 @@ if pgrep -x "1password" >/dev/null && blob-cmd-present 1password; then
|
||||
fi
|
||||
|
||||
# Avoid running screensaver when locked
|
||||
pkill -x ttfx 2>/dev/null || true
|
||||
# ttfx handles SIGTERM asynchronously, so keep its terminal alive until it exits.
|
||||
timeout 1s pidwait -x ttfx 2>/dev/null || true
|
||||
effect_command=$(blob-screensaver-effect 2>/dev/null) && {
|
||||
pkill -x "$effect_command" 2>/dev/null || true
|
||||
timeout 1s pidwait -x "$effect_command" 2>/dev/null || true
|
||||
}
|
||||
pkill -f '[o]rg.blob.screensaver' 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user