feat: added run sh and makefile scripts

This commit is contained in:
Krzysztof kuhy Rudnicki 2026-02-22 22:00:50 +01:00
parent 6df17080cb
commit 825a380b00

10
screen_locker/run.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
VENV="$REPO_ROOT/.venv"
[[ ! -d "$VENV" ]] && python3 -m venv "$VENV"
# tkinter is from Python stdlib; install python-tk system package if missing:
# Arch: sudo pacman -S python-tk
# Debian: sudo apt-get install python3-tk
"$VENV/bin/python" "$SCRIPT_DIR/screen_lock.py" "$@"