16 lines
461 B
Bash
Executable File
16 lines
461 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Toggle bar visibility
|
|
# omarchy:examples=omarchy toggle bar
|
|
|
|
OMARCHY_PATH=${OMARCHY_PATH:-$HOME/.local/share/omarchy}
|
|
CONFIG_DIR="$OMARCHY_PATH/default/quickshell/bar"
|
|
|
|
omarchy-toggle bar-off
|
|
|
|
if quickshell list -p "$CONFIG_DIR" 2>/dev/null | grep -q '^Instance '; then
|
|
quickshell kill -p "$CONFIG_DIR" >/dev/null 2>&1 || true
|
|
else
|
|
uwsm-app -- env OMARCHY_PATH="$OMARCHY_PATH" quickshell -p "$CONFIG_DIR" >/dev/null 2>&1 &
|
|
fi
|