#!/bin/bash

# omarchy:summary=Toggle Waybar visibility
# omarchy:examples=omarchy toggle waybar

omarchy-toggle waybar-off

if pgrep -x waybar >/dev/null; then
  pkill -x waybar
else
  uwsm-app -- waybar >/dev/null 2>&1 &
fi
