dotfiles/dot_local/bin/executable_waylock-launcher

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