#!/usr/bin/env bash # Toggle the waybar on/off (marker file read by the session autostart). set -euo pipefail CURRENT="$HOME/.config/omarchy/current" mkdir -p "$CURRENT" if [ -e "$CURRENT/waybar-off" ]; then rm -f "$CURRENT/waybar-off" setsid waybar >/dev/null 2>&1 & else touch "$CURRENT/waybar-off" pkill -x waybar 2>/dev/null || true fi exit 0