added steam as optional app

This commit is contained in:
jkjarvis
2024-06-12 23:20:27 +05:30
parent 6512cde4f7
commit a7ac12532c
2 changed files with 22 additions and 1 deletions

21
install/optional/app-steam.sh Executable file
View File

@@ -0,0 +1,21 @@
cd /tmp
wget https://cdn.akamai.steamstatic.com/client/installer/steam.deb
sudo apt install -y ./steam.deb
rm steam.deb
cd -
# Add steam to dock
new_app="steam.desktop"
current_favorites=$(gsettings get org.gnome.shell favorite-apps)
# Check if the new app is already in the list
if [[ "$current_favorites" == *"$new_app"* ]]; then
echo "App already exists in favorites."
exit 0
fi
# Remove the closing bracket from the current favorites list
current_favorites_trimmed=$(echo $current_favorites | sed "s/]//")
new_favorites_list="${current_favorites_trimmed}, '${new_app}']"
gsettings set org.gnome.shell favorite-apps "$new_favorites_list"

View File

@@ -1,5 +1,5 @@
# Install optional apps
apps=$(gum choose "1password" "Spotify" "Zoom" "Dropbox" "VirtualBox" --no-limit --selected "1password","Spotify","Zoom" --height 7 --header "Select commercial apps")
apps=$(gum choose "1password" "Spotify" "Zoom" "Dropbox" "VirtualBox" "Steam" --no-limit --selected "1password","Spotify","Zoom" --height 7 --header "Select commercial apps")
for app in $apps; do
source "$OMAKUB_PATH/install/optional/app-${app,,}.sh"