8000 Added steam as optional app by jkjarvis · Pull Request #110 · omacom/omakub · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Merged
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
22 changes: 22 additions & 0 deletions install/optional/app-steam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 -

# 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"
2 changes: 1 addition & 1 deletion install/select-optional-apps.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Install optional apps
apps=$(gum choose "1password" "Spotify" "Zoom" "Dropbox" --no-limit --selected "1password","Spotify","Zoom" --height 6 --header "Select optional 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"
Expand Down
1 change: 1 addition & 0 deletions uninstall/app-steam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo apt remove -y steam steam-launcher
0