feat: Adds keybinds for uninstalling desktop apps, and rules to float the tui app.

This commit is contained in:
2025-09-29 17:49:27 -04:00
parent e60f049f10
commit 4ae6389ae8
3 changed files with 10 additions and 7 deletions

View File

@@ -58,9 +58,10 @@ fi
if [[ ${#files} == 0 ]]; then
interactive_mode="1"
files+=(
$(find $XDG_DATA_HOME/applications -mindepth 1 -maxdepth 1 -type f -name "*.desktop" -printf "%f\n" |
gum choose --no-limit --padding "2 4" --header "Choose desktop apps to remove:")
gum choose --no-limit --padding "2 4" --header "Choose desktop apps to remove:" --selected-prefix="✗ ")
)
fi
@@ -105,7 +106,6 @@ for f in ${files[@]}; do
rm -rf $file
fi
fi
done
if [[ ${#files} -gt 0 ]]; then