dotfiles/dot_local/bin/executable_waylock-launcher

18 lines
349 B
Text
Raw Normal View History

2023-06-17 01:34:05 -04:00
#!/bin/bash
START_TIME=`date +"%b %d, %Y %T"`
LOG_FILE="${XDG_STATE_HOME}"/waylock.log
echo "--- ${START_TIME} ---" > "$LOG_FILE"
2023-06-17 01:34:05 -04:00
if pgrep -u $UID -x waylock >/dev/null; then
exit 1
else
waylock \
-fork-on-lock \
-init-color 0x000000 \
-fail-color 0x000000 \
-input-color 0x525c62 \
2>&1 | tee -a "$LOG_FILE" & disown
2023-06-17 01:34:05 -04:00
fi