Skip to content

Instantly share code, notes, and snippets.

@sharkwouter
Created March 29, 2016 15:15
Show Gist options
  • Save sharkwouter/16f2d11cdabe0edd7053 to your computer and use it in GitHub Desktop.
Save sharkwouter/16f2d11cdabe0edd7053 to your computer and use it in GitHub Desktop.
--- a/post_install.sh
+++ b/post_install.sh
@@ -90,6 +90,28 @@ Name=postlogon
EOF
#
+# Make set_hd_mode.sh run at the first logon
+#
+cat - > /target/home/steam/.config/autostart/set_hd_mode.desktop << 'EOF'
+[Desktop Entry]
+Type=Application
+Exec=/usr/bin/steamos/set_hd_mode.sh
+X-GNOME-Autostart-enabled=true
+Name=sethdmode
+EOF
+
+#
+# Make set_hd_mode.sh run when the desktop is launched
+#
+cat - > /target/home/desktop/.config/autostart/set_hd_mode.desktop << 'EOF'
+[Desktop Entry]
+Type=Application
+Exec=/usr/bin/steamos/set_hd_mode.sh
+X-GNOME-Autostart-enabled=true
+Name=sethdmode
+EOF
+
+#
# Run aticonfig if an AMD card is present
#
if [ -n "$(lspci|grep VGA|grep -i 'AMD\|ATI')" ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment