
Running a screensaver is a very important security feature. It is necessary that it always works and does not depend on the state of the user's directories, so the screensaver run-script should be placed in the system directory. However, the locking process remains customizable because the user script can be used too.
10 lines
189 B
Bash
Executable file
10 lines
189 B
Bash
Executable file
#!/bin/bash
|
|
|
|
USER_SCRIPT="$HOME/.config/swaylock/lock.sh"
|
|
GLOB_SCRIPT="/usr/share/sway/scripts/swaylock.sh"
|
|
|
|
if [[ -x "$USER_SCRIPT" ]]; then
|
|
"$USER_SCRIPT"
|
|
else
|
|
"$GLOB_SCRIPT"
|
|
fi
|