#!/bin/bash

# omarchy:summary=Toggle notification do-not-disturb mode

makoctl mode -t do-not-disturb

if makoctl mode | grep -q 'do-not-disturb'; then
  notify-send -u low "󰂛    Silenced notifications"
else
  notify-send -u low "󰂚    Enabled notifications"
fi

pkill -RTMIN+10 waybar
OMARCHY_PATH=${OMARCHY_PATH:-$HOME/.local/share/omarchy}
quickshell ipc -p "$OMARCHY_PATH/default/quickshell/omarchy-shell" call bar refreshIndicators >/dev/null 2>&1 || true
