#!/bin/bash # omarchy:summary=Pick a file from a menu # omarchy:group=menu # omarchy:name=file # omarchy:args=label paths formats [menu args...] # omarchy:examples=omarchy menu file "Select image" "$HOME/Pictures" "jpg png webp"|omarchy-menu-file "Select media" "$HOME/Pictures:$HOME/Videos" "jpg png mp4 mov" --width 800 set -euo pipefail if (( $# < 3 )); then echo "Usage: omarchy-menu-file