Skip to content

Instantly share code, notes, and snippets.

@balika011
Last active September 10, 2023 10:00
Show Gist options
  • Save balika011/1952fc11ae5a2bc8289350cf1f87ab9b to your computer and use it in GitHub Desktop.
Save balika011/1952fc11ae5a2bc8289350cf1f87ab9b to your computer and use it in GitHub Desktop.
Install Gonme on the Steam Deck instead of KDE Plasma
#!/bin/bash
steamos-readonly disable
pacman-key --init
pacman-key --populate
pacman-key --refresh-keys
pacman -Sy archlinux-keyring
pacman -Syu --overwrite \*
pacman -Syu --overwrite \* baobab cheese eog evince gnome-autoar gnome-backgrounds gnome-bluetooth-3.0 gnome-boxes gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-color-manager gnome-contacts gnome-control-center gnome-desktop gnome-desktop-4 gnome-desktop-common gnome-disk-utility gnome-epub-thumbnailer gnome-font-viewer gnome-keyring gnome-logs gnome-maps gnome-menus gnome-music gnome-online-accounts gnome-photos gnome-remote-desktop gnome-screenshot gnome-session gnome-settings-daemon gnome-shell gnome-shell-extensions gnome-software gnome-system-monitor gnome-terminal gnome-themes-extra gnome-tweaks gnome-user-docs gnome-user-share gnome-video-effects gnome-weather gvfs gvfs-afc gvfs-goa gvfs-google gvfs-mtp gvfs-nfs gvfs-smb malcontent nautilus orca rygel simple-scan sushi totem tracker3-miners xdg-desktop-portal-gnome xdg-user-dirs-gtk yelp xorg-xinput gtk-vnc gnome-connections vte4 gnome-console gnome-text-editor gnome-tour gvfs-gphoto2
pacman -R discover dolphin kate kdeconnect kdeplasma-addons kgamma5 khotkeys kinfocenter konsole krunner kscreen kwin milou partitionmanager plasma-browser-integration plasma-desktop plasma-disks plasma-firewall plasma-framework plasma-integration plasma-meta plasma-nm plasma-pa plasma-remotecontrollers plasma-systemmonitor plasma-thunderbolt plasma-vault plasma-wayland-protocols plasma-wayland-session plasma-welcome plasma-workspace plasma-workspace-wallpapers powerdevil sddm-kcm spectacle systemsettings xdg-desktop-portal-kde flatpak-kcm
cat <<EOF > /etc/X11/xorg.conf.d/99-configuration.conf
Section "InputClass"
Identifier "Coordinate Transformation Matrix"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
MatchDriver "libinput"
Option "CalibrationMatrix" "1 0 0 0 1 0 0 0 1"
EndSection
EOF
cat <<EOF > /etc/xdg/autostart/steam.desktop
[Desktop Entry]
Name=Steam
GenericName=Steam
Comment=Steam
Exec=steam -silent
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true
EOF
cat <<EOF > /usr/bin/startgnome-x11
#!/bin/sh
export XDG_CURRENT_DESKTOP=GNOME
export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
exec gnome-session
EOF
chmod 755 /usr/bin/startgnome-x11
sudo ln -s /usr/bin/startgnome-x11 /usr/bin/startplasma-x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment