Silence wofi output when run from cli

This commit is contained in:
David Heinemeier Hansson
2025-07-16 06:30:57 -07:00
parent 149feae288
commit 5e4167a0db

View File

@ -25,7 +25,7 @@ selection=$(printf '%s\n' "${themes[@]}" | wofi \
--width 150 \ --width 150 \
--height 300 \ --height 300 \
-O alphabetical \ -O alphabetical \
--style ~/.local/share/omarchy/default/wofi/select.css) --style ~/.local/share/omarchy/default/wofi/select.css 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')
@ -35,4 +35,3 @@ selected_theme=$(echo "$clean_selection" | tr '[:upper:]' '[:lower:]' | tr ' ' '
# Apply the selected theme # Apply the selected theme
"$HOME/.local/share/omarchy/bin/omarchy-theme-set" "$selected_theme" "$HOME/.local/share/omarchy/bin/omarchy-theme-set" "$selected_theme"