Single namespace is fine

This commit is contained in:
David Heinemeier Hansson
2026-05-11 15:28:52 -04:00
committed by Ryan Hughes
parent 008f0cf7dd
commit 5487c17d19
5 changed files with 68 additions and 15 deletions
+3 -11
View File
@@ -1,14 +1,11 @@
#!/bin/bash
# omarchy:summary=Open a generic image selector menu
# omarchy:group=menu
# omarchy:name=images
# omarchy:args=[--selected <image>] [--namespace <namespace>] [--colors-file <path>] <image-dir>...
# omarchy:args=[--selected <image>] [--colors-file <path>] <image-dir>...
OMARCHY_PATH=${OMARCHY_PATH:-$HOME/.local/share/omarchy}
selected_image=""
namespace="omarchy-image-selector"
colors_file=""
image_dirs=()
@@ -18,16 +15,12 @@ while [[ $# -gt 0 ]]; do
selected_image="$2"
shift 2
;;
--namespace)
namespace="$2"
shift 2
;;
--colors-file)
colors_file="$2"
shift 2
;;
--help|-h)
echo "Usage: omarchy-menu-images [--selected <image>] [--namespace <namespace>] [--colors-file <path>] <image-dir>..."
echo "Usage: omarchy-menu-images [--selected <image>] [--colors-file <path>] <image-dir>..."
exit 0
;;
*)
@@ -38,7 +31,7 @@ while [[ $# -gt 0 ]]; do
done
if (( ${#image_dirs[@]} == 0 )); then
echo "Usage: omarchy-menu-images [--selected <image>] [--namespace <namespace>] [--colors-file <path>] <image-dir>..." >&2
echo "Usage: omarchy-menu-images [--selected <image>] [--colors-file <path>] <image-dir>..." >&2
exit 1
fi
@@ -85,7 +78,6 @@ done
OMARCHY_IMAGE_SELECTOR_SELECTION_FILE=$selection_file \
OMARCHY_IMAGE_SELECTOR_DIRS="$image_dirs_env" \
OMARCHY_IMAGE_SELECTOR_SELECTED="$selected_list_image" \
OMARCHY_IMAGE_SELECTOR_NAMESPACE="$namespace" \
OMARCHY_IMAGE_SELECTOR_COLORS_FILE="$colors_file" \
quickshell -p "$OMARCHY_PATH/default/quickshell/wallpaper-switcher.qml" >/dev/null