mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
16 lines
404 B
Bash
Executable File
16 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Restart the Omarchy shell
|
|
# omarchy:examples=omarchy restart shell
|
|
|
|
CONFIG_DIR="$OMARCHY_PATH/shell"
|
|
|
|
if [[ $(omarchy-shell lock isLocked 2>/dev/null || true) == "true" ]]; then
|
|
echo "Refusing to restart Omarchy shell while the session is locked." >&2
|
|
exit 1
|
|
fi
|
|
|
|
pkill -x quickshell 2>/dev/null || true
|
|
sleep 0.2
|
|
setsid quickshell -n -p "$CONFIG_DIR" >/dev/null 2>&1 &
|