mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43:10 -05:00
16 lines
348 B
Bash
16 lines
348 B
Bash
#!/bin/bash
|
|
|
|
START_TIME=`date +"%b %d, %Y %T"`
|
|
echo "--- ${START_TIME} ---" > "${XDG_STATE_HOME}"/waylock.log
|
|
|
|
if pgrep -u $UID -x waylock >/dev/null; then
|
|
exit 1
|
|
else
|
|
waylock \
|
|
-fork-on-lock \
|
|
-init-color 0x000000 \
|
|
-input-color 0x323d43 \
|
|
-fail-color 0xe26c6e \
|
|
2>&1 | tee -a "${XDG_STATE_HOME}"/waylock.log & disown
|
|
fi
|
|
|