Files
z-bar-qt/scripts/zshell.sh
Zacharias-Brohn ae23c309a2 binary
2026-02-11 22:57:20 +01:00

23 lines
357 B
Bash
Executable File

#!/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 "$@"