This commit is contained in:
Zacharias-Brohn
2026-02-11 22:56:20 +01:00
parent 32027ce136
commit ae23c309a2
5 changed files with 53 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
QML_ROOT=/home/zach/GitProjects/z-bar-qt/scripts/..
LOCK=false
main() {
local OPTARG OPTIND opt
while getopts "l" opt; do
case "$opt" in
l) LOCK=true ;;
*) fatal 'bad option' ;;
esac
done
if [[ "$LOCK" = "true" ]]; then
hyprctl dispatch global zshell-lock:lock
else
qs -n -d -p "$QML_ROOT/shell.qml"
fi
}
main "$@"