mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-04 04:37:47 +02:00
A pass over the install scripts, dev-tools commands, and Hyprland Lua files that I had stuffed with explain-everything preambles. Most of those rationales (which files ship where, why hyprctl setenv doesn't suffice, etc.) belong in commit messages or PR descriptions, not in code people have to read forever. Kept the few comments that document genuinely non-obvious behaviour: the keybind-env reason for hl.env in envs.lua, why the runtime PAM seds stay scripted in increase-lockout-limit, the chroot/--now distinction in chroot.sh, and the dev-pkg-test split-install reason.
34 lines
1023 B
Bash
Executable File
34 lines
1023 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Show the current Omarchy dev-link state
|
|
# omarchy:group=dev
|
|
|
|
if [[ -f /etc/omarchy.conf ]]; then
|
|
configured=$(
|
|
OMARCHY_PATH=
|
|
# shellcheck disable=SC1091
|
|
. /etc/omarchy.conf
|
|
printf '%s' "${OMARCHY_PATH:-<empty>}"
|
|
)
|
|
echo "dev-link: ACTIVE"
|
|
echo " /etc/omarchy.conf -> OMARCHY_PATH=$configured"
|
|
else
|
|
configured="/usr/share/omarchy (default)"
|
|
echo "dev-link: inactive"
|
|
fi
|
|
|
|
echo " current shell: OMARCHY_PATH=${OMARCHY_PATH:-<unset>}"
|
|
|
|
if [[ -f /etc/omarchy.conf && "${OMARCHY_PATH:-}" != "$configured" ]]; then
|
|
echo
|
|
echo "Note: this shell predates dev-link. Open a new shell to pick up the change,"
|
|
echo "or 'export OMARCHY_PATH=$configured' to update just this shell."
|
|
fi
|
|
|
|
if command -v hyprctl >/dev/null 2>&1 && hyprctl version &>/dev/null; then
|
|
hypr_path=$(hyprctl getoption -j env 2>/dev/null | sed -n 's/.*OMARCHY_PATH=\([^"]*\).*/\1/p' | head -1)
|
|
if [[ -n "$hypr_path" ]]; then
|
|
echo " hyprland session: OMARCHY_PATH=$hypr_path"
|
|
fi
|
|
fi
|