Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/installations/install-optional-apps.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
OPTIONAL_APPS=($(ls "$MANJIKAZE_DIR/app/installations/optional/"*.sh | xargs -n1 basename | sed 's/\.sh$//'))
DEFAULT_OPTIONAL_APPS='dropbox,signal,smartgit,spotify'

SELECTED_OPTIONAL_APPS=$(gum choose "${OPTIONAL_APPS[@]}" --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 20 --header "Select optional apps" | tr ' ' '-')
SELECTED_OPTIONAL_APPS=$(gum choose "${OPTIONAL_APPS[@]}" --no-limit --height 20 --header "Select optional apps" | tr ' ' '|')

if [ -z "$SELECTED_OPTIONAL_APPS" ]; then
status "No optional apps selected. Skipping installation."
return
fi

echo "The following optional apps will be installed:"
printf " - %s\n" ${SELECTED_OPTIONAL_APPS//-/ }
printf " - %s\n" ${SELECTED_OPTIONAL_APPS//|/ }

if ! gum confirm "Do you want to proceed with the installation?"; then
status "Optional apps installation cancelled."
Expand All @@ -19,7 +18,7 @@ fi
status "Installing optional apps..."
disable_sleep

for app in ${SELECTED_OPTIONAL_APPS//-/ }; do
for app in ${SELECTED_OPTIONAL_APPS//|/ }; do
app_file="$MANJIKAZE_DIR/app/installations/optional/${app,,}.sh"
if [ -f "$app_file" ]; then
source "$app_file"
Expand Down
2 changes: 2 additions & 0 deletions app/installations/optional/aws-session-manager-plugin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
install_package "aws-session-manager-plugin" aur