sway-profiles/bin/sp-lock
2025-01-04 18:38:46 -08:00

13 lines
300 B
Bash
Executable file

#!/bin/bash
source "/usr/lib/sp-functions"
lock_script="${conf_dir}/lockscript"
unlock_script="${conf_dir}/unlockscript"
if [ -f "${lock_script}" ]; then
bash -c "${lock_script}"
fi
gtklock -s "${HOME}/.config/gtklock/style.css"
if [ -f "${unlock_script}" ]; then
bash -c "${unlock_script}"
fi