mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Adds keybinds for uninstalling desktop apps, and rules to float the tui app.
This commit is contained in:
4
env/.local/scripts/uninstall-desktop-app
vendored
4
env/.local/scripts/uninstall-desktop-app
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user