From 5bc151f99420bac724e33534b20c4f4169e0712d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 20 May 2026 22:18:38 +0200 Subject: [PATCH] Convert theme remove to a QS menu --- bin/omarchy-theme-remove | 5 ++++- default/omarchy/omarchy-menu.jsonc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-theme-remove b/bin/omarchy-theme-remove index dac33cd4..fdbeac03 100755 --- a/bin/omarchy-theme-remove +++ b/bin/omarchy-theme-remove @@ -8,7 +8,8 @@ if [[ -z $1 ]]; then mapfile -t extra_themes < <(find ~/.config/omarchy/themes -mindepth 1 -maxdepth 1 -type d ! -xtype l -printf '%f\n') if (( ${#extra_themes[@]} > 0 )); then - THEME_NAME=$(printf '%s\n' "${extra_themes[@]}" | sort | gum choose --header="Remove extra theme") + mapfile -t extra_themes < <(printf '%s\n' "${extra_themes[@]}" | sort) + THEME_NAME=$(omarchy-menu-select "Remove extra theme" "${extra_themes[@]}" -- --width 520 --maxheight 520) else echo "No extra themes installed." exit 1 @@ -34,3 +35,5 @@ fi # Now remove the theme directory for THEME_NAME rm -rf "$THEME_PATH" +omarchy-notification-send "Theme removed" "$THEME_NAME" || true +echo "Removed $THEME_NAME" diff --git a/default/omarchy/omarchy-menu.jsonc b/default/omarchy/omarchy-menu.jsonc index 5a07e8f3..bb4e9f5e 100644 --- a/default/omarchy/omarchy-menu.jsonc +++ b/default/omarchy/omarchy-menu.jsonc @@ -230,7 +230,7 @@ "remove.webapp": {"icon":"","label":"Web App","keywords":"uninstall","action":"omarchy-launch-floating-terminal-with-presentation omarchy-webapp-remove"}, "remove.tui": {"icon":"","label":"TUI","keywords":"uninstall terminal app","action":"omarchy-launch-floating-terminal-with-presentation omarchy-tui-remove"}, "remove.development": {"icon":"󰵮","label":"Development","keywords":"uninstall languages"}, - "remove.theme": {"icon":"󰸌","label":"Theme","keywords":"uninstall","action":"omarchy-launch-floating-terminal-with-presentation omarchy-theme-remove"}, + "remove.theme": {"icon":"󰸌","label":"Theme","keywords":"uninstall","action":"omarchy-theme-remove"}, "remove.browser": {"icon":"","label":"Browser","keywords":"uninstall"}, "remove.dictation": {"icon":"","label":"Dictation","keywords":"uninstall voice","action":"omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-remove"}, "remove.gaming": {"icon":"","label":"Gaming","keywords":"uninstall steam retroarch minecraft"},