From 825a380b004673c9924c018d108b6bcc18fca1a4 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 22 Feb 2026 22:00:50 +0100 Subject: [PATCH] feat: added run sh and makefile scripts --- screen_locker/run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 screen_locker/run.sh diff --git a/screen_locker/run.sh b/screen_locker/run.sh new file mode 100755 index 0000000..f40d569 --- /dev/null +++ b/screen_locker/run.sh @@ -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" "$@"