mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-07-04 13:23:13 +02:00
feat: added run sh and makefile scripts
This commit is contained in:
parent
6df17080cb
commit
825a380b00
10
screen_locker/run.sh
Executable file
10
screen_locker/run.sh
Executable 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" "$@"
|
||||||
Loading…
Reference in New Issue
Block a user