feat(audit): address batch 3 of missing scripts

- Implement nomarchy-pkg-install, nomarchy-pkg-drop, nomarchy-pkg-aur-add (stub)
- Implement nomarchy-theme, nomarchy-font, nomarchy-wallpaper wrappers
- Update docs/SCRIPTS.md with 'kept' status for new scripts
This commit is contained in:
Bernardo Magri
2026-04-25 22:37:06 +01:00
parent 074dc3576c
commit fb22e390e8
7 changed files with 100 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Nomarchy Font Helper
# Usage: nomarchy-font [selector|set <name>|list]
COMMAND="$1"
case "$COMMAND" in
set)
shift
nomarchy-font-set "$@"
;;
list)
nomarchy-font-list
;;
selector|*)
nomarchy-font-selector
;;
esac

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Nomarchy AUR Stub
# Informs the user that AUR is not applicable to NixOS.
notify-send -u critical "Nomarchy" "The AUR is an Arch Linux feature and is not available on NixOS. Try searching for the package in nixpkgs using 'nix search nixpkgs <name>'."
echo "Error: AUR is not available on NixOS."
exit 1

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Nomarchy Package Drop Script
# Alias for nomarchy-pkg-remove.
nomarchy-pkg-remove "$@"

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Nomarchy Package Install Script
# Alias for nomarchy-pkg-add for users coming from other distros.
nomarchy-pkg-add "$@"

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Nomarchy Theme Helper
# Usage: nomarchy-theme [selector|set <name>|list]
COMMAND="$1"
case "$COMMAND" in
set)
shift
nomarchy-theme-set "$@"
;;
list)
nomarchy-theme-list
;;
selector|*)
nomarchy-theme-selector
;;
esac

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Nomarchy Wallpaper Helper
# Usage: nomarchy-wallpaper [selector|set <path>|next]
COMMAND="$1"
case "$COMMAND" in
set)
shift
# Wallpaper set usually involves writing to state.json and calling swww
# We can reuse the logic from nomarchy-wallpaper-selector if we extract it,
# but for now let's just trigger the selector.
nomarchy-wallpaper-selector
;;
next)
nomarchy-theme-bg-next
;;
selector|*)
nomarchy-wallpaper-selector
;;
esac