#!/bin/bash

case "$TERMINAL" in
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
"kitty") killall -SIGUSR1 kitty ;;
"ghostty")
  # Use a default theme if none exists
  if [[ ! -f ~/.config/omarchy/current/theme/ghostty.conf ]]; then
    echo "theme = Spacegray" >~/.config/omarchy/current/theme/ghostty.conf
  fi

  killall -USRSIG2 ghostty
  ;;
esac
