Allow the wide menu to be filtered

This commit is contained in:
David Heinemeier Hansson 2025-08-04 12:55:05 +02:00
parent 256ce145ba
commit 45b6d96be0
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ show_cmd_menu() {
󰔎 Toggle Nightlight 󰔎 Toggle Nightlight
󱫖 Toggle Idle Lock 󱫖 Toggle Idle Lock
󰍜 Toggle Top Bar" 󰍜 Toggle Top Bar"
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_250) local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_250 -p "Run command")
case "$selection" in case "$selection" in
*Screensaver*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;; *Screensaver*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;;

View File

@ -19,7 +19,7 @@ mapfile -t themes < <(
) )
# Show Walker menu # Show Walker menu
selection=$(printf '%s\n' "${themes[@]}" | walker --dmenu --theme dmenu_250 2>/dev/null) selection=$(printf '%s\n' "${themes[@]}" | walker --dmenu --theme dmenu_250 -p "Choose Theme" 2>/dev/null)
# Remove any Pango markup before converting back to filename # Remove any Pango markup before converting back to filename
clean_selection=$(echo "$selection" | sed -E 's/<[^>]+>//g') clean_selection=$(echo "$selection" | sed -E 's/<[^>]+>//g')