#!/bin/bash

# omarchy:summary=Open a config file in the user's editor and surface a toast
# omarchy:args=<path>
# omarchy:examples=omarchy launch config-editor ~/.config/hypr/hyprland.lua

path="${1-}"

if [[ -z $path ]]; then
  echo "Usage: omarchy-launch-config-editor <path>" >&2
  exit 1
fi

omarchy-notification-send -u low "Editing config file" "$path"
exec omarchy-launch-editor "$path"
