From a7ac12532c602fb8bf224ff5bf851435bf510518 Mon Sep 17 00:00:00 2001 From: jkjarvis Date: Wed, 12 Jun 2024 23:20:27 +0530 Subject: [PATCH 1/5] added steam as optional app --- install/optional/app-steam.sh | 21 +++++++++++++++++++++ install/select-optional-apps.sh | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 install/optional/app-steam.sh diff --git a/install/optional/app-steam.sh b/install/optional/app-steam.sh new file mode 100755 index 0000000..82e82cc --- /dev/null +++ b/install/optional/app-steam.sh @@ -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" diff --git a/install/select-optional-apps.sh b/install/select-optional-apps.sh index b18dc1d..9457aa6 100644 --- a/install/select-optional-apps.sh +++ b/install/select-optional-apps.sh @@ -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" From c41c96399c33eb501007f231ede8c9570b469102 Mon Sep 17 00:00:00 2001 From: jkjarvis Date: Wed, 12 Jun 2024 23:25:36 +0530 Subject: [PATCH 2/5] added uninstall command --- uninstall/app-steam.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 uninstall/app-steam.sh diff --git a/uninstall/app-steam.sh b/uninstall/app-steam.sh new file mode 100644 index 0000000..6afccc3 --- /dev/null +++ b/uninstall/app-steam.sh @@ -0,0 +1 @@ +sudo apt remove -y steam steam-launcher \ No newline at end of file From 64850c92757ed308beb5059acfe32d9430d00b17 Mon Sep 17 00:00:00 2001 From: jkjarvis Date: Wed, 12 Jun 2024 23:26:08 +0530 Subject: [PATCH 3/5] added new line --- uninstall/app-steam.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall/app-steam.sh b/uninstall/app-steam.sh index 6afccc3..54bacc1 100644 --- a/uninstall/app-steam.sh +++ b/uninstall/app-steam.sh @@ -1 +1 @@ -sudo apt remove -y steam steam-launcher \ No newline at end of file +sudo apt remove -y steam steam-launcher From 065353e71157cf8e53238cc73ecfb4cb41ee1eaf Mon Sep 17 00:00:00 2001 From: jkjarvis Date: Thu, 13 Jun 2024 22:57:43 +0530 Subject: [PATCH 4/5] added external packages --- install/optional/app-steam.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/optional/app-steam.sh b/install/optional/app-steam.sh index 82e82cc..5778198 100755 --- a/install/optional/app-steam.sh +++ b/install/optional/app-steam.sh @@ -1,6 +1,7 @@ cd /tmp wget https://cdn.akamai.steamstatic.com/client/installer/steam.deb sudo apt install -y ./steam.deb +sudo apt-get install --no-remove -oAPT::Get::AutomaticRemove=false libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs-amd64:amd64 rm steam.deb cd - From 592d2f2911881402647024145ef8bbf04ca49a04 Mon Sep 17 00:00:00 2001 From: jkjarvis Date: Thu, 13 Jun 2024 23:01:51 +0530 Subject: [PATCH 5/5] merged conflicts --- install/select-optional-apps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/select-optional-apps.sh b/install/select-optional-apps.sh index 9457aa6..cc14a76 100644 --- a/install/select-optional-apps.sh +++ b/install/select-optional-apps.sh @@ -1,5 +1,5 @@ # Install optional apps -apps=$(gum choose "1password" "Spotify" "Zoom" "Dropbox" "VirtualBox" "Steam" --no-limit --selected "1password","Spotify","Zoom" --height 7 --header "Select commercial apps") +apps=$(gum choose "1password" "Spotify" "Zoom" "Dropbox" "Steam" --no-limit --selected "1password","Spotify","Zoom" --height 6 --header "Select optional apps" for app in $apps; do source "$OMAKUB_PATH/install/optional/app-${app,,}.sh"