File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4
4
# Check the distribution name and version and abort if incompatible
5
5
source ~ /.local/share/omakub/install/check-version.sh
6
6
7
+ # Ask for app choices
8
+ echo " Get ready to make a few choices..."
9
+ source ~ /.local/share/omakub/install/terminal/required/app-gum.sh > /dev/null
10
+ source ~ /.local/share/omakub/install/first-run-choices.sh
11
+
7
12
# Desktop software and tweaks will only be installed if we're running Gnome
8
13
if [[ " $XDG_CURRENT_DESKTOP " == * " GNOME" * ]]; then
9
14
# Ensure computer doesn't go to sleep or lock while installing
10
15
gsettings set org.gnome.desktop.screensaver lock-enabled false
11
16
gsettings set org.gnome.desktop.session idle-delay 0
12
17
13
- echo " Get ready to make a few choices..."
14
- source ~ /.local/share/omakub/install/terminal/required/app-gum.sh > /dev/null
15
- source ~ /.local/share/omakub/install/first-run-choices.sh
16
-
17
18
echo " Installing terminal and desktop tools..."
18
19
19
20
# Install terminal tools
Original file line number Diff line number Diff line change 1
- OPTIONAL_APPS=(" 1password" " Spotify" " Zoom" " Dropbox" )
2
- DEFAULT_OPTIONAL_APPS=' 1password,Spotify,Zoom'
3
- export OMAKUB_FIRST_RUN_OPTIONAL_APPS=$( gum choose " ${OPTIONAL_APPS[@]} " --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 7 --header " Select optional apps" | tr ' ' ' -' )
1
+ # Only ask for default desktop app choices when running Gnome
2
+ if [[ " $XDG_CURRENT_DESKTOP " == * " GNOME" * ]]; then
3
+ OPTIONAL_APPS=(" 1password" " Spotify" " Zoom" " Dropbox" )
4
+ DEFAULT_OPTIONAL_APPS=' 1password,Spotify,Zoom'
5
+ export OMAKUB_FIRST_RUN_OPTIONAL_APPS=$( gum choose " ${OPTIONAL_APPS[@]} " --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 7 --header " Select optional apps" | tr ' ' ' -' )
6
+ fi
4
7
5
8
AVAILABLE_LANGUAGES=(" Ruby on Rails" " Node.js" " Go" " PHP" " Python" " Elixir" " Rust" " Java" )
6
9
SELECTED_LANGUAGES=" Ruby on Rails" ," Node.js"
You can’t perform that action at this time.
0 commit comments