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
View File
Regular → Executable
+9 -1
View File
@@ -1,8 +1,16 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
SCRIPT="./zshell.sh"
prepare_binary() {
sed -ir "s|QML_ROOT=.*|QML_ROOT=${SCRIPT_DIR}/..|" "$SCRIPT"
}
main() {
if [[ ]]
prepare_binary
sudo cp "$SCRIPT" /usr/bin/zshell
}
main "$@"
+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 "$@"
+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 "$@"