Files
omarchy/bin/omarchy-launch-config-editor
T

16 lines
413 B
Bash
Executable File

#!/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 "$(omarchy-text "Editing config file")" "$path"
exec omarchy-launch-editor "$path"