# ~/.config/matugen/scripts/swayosd-reload.sh
#!/bin/bash
#env WAYLAND_DISPLAY=$WAYLAND_DISPLAY  DBUS_SESSION_BUS_ADDRESS='unix:path=$XDG_RUNTIME_DIR/bus' XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR

export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-wayland-1}"
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
pkill swayosd-server 2>/dev/null
sleep 0.2
swayosd-server &
disown
exit 0
