|
1 | 1 | SERVICES=("bluetooth" "scx_loader") |
2 | 2 |
|
3 | 3 | update_user() { |
4 | | - # edit user name for sddm autologin and decky environment variables |
| 4 | + # Get username and update it in config files. |
5 | 5 | export LANG=C |
6 | 6 | if usr=$(id -nu 1000) && [[ ! -z ${usr} ]]; then |
7 | | - echo "Setting ${usr} as name for autologin and decky env variables." |
| 7 | + echo "Setting ${usr} as name for autologin and decky environment variables." |
8 | 8 | elif usr=$(id -nu 1001) && [[ ! -z ${usr} ]]; then |
9 | | - echo "Setting ${usr} as name for autologin and decky env variables." |
| 9 | + echo "Setting ${usr} as name for autologin and decky environment variables." |
10 | 10 | else |
11 | | - echo "No user found: setting 'User=' in /etc/sddm.conf.d/steam-deckify.conf" |
| 11 | + echo "Get user name failed, setting 'User=' in /etc/sddm.conf.d/steam-deckify.conf" |
12 | 12 | fi |
13 | | - #Update for autologin |
| 13 | + # Autologin |
14 | 14 | sed -ri "s|^(User=).*|User=${usr}|" /etc/sddm.conf.d/steam-deckify.conf |
15 | | - #Update for decky loader |
| 15 | + # Decky loader |
16 | 16 | sed -ri "s|^(DECKY_USER=).*|DECKY_USER=${usr}|" /etc/environment.d/handheld.conf |
17 | 17 | sed -ri "s|^(DECKY_USER_HOME=).*|DECK_USER_HOME=/home/${usr}|" /etc/environment.d/handheld.conf |
| 18 | + |
| 19 | + # Return to Gaming Mode file |
| 20 | + cp /etc/skel/Desktop/steamos-gamemode.desktop /home/${usr}/Desktop/steamos-gamemode.desktop |
18 | 21 | } |
19 | 22 |
|
20 | 23 | scx_lavd_default() { |
|
29 | 32 |
|
30 | 33 | steamos_steam() { |
31 | 34 | # Grab the steam bootstrap for first boot |
32 | | - |
33 | 35 | URL="https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steam-jupiter-stable-1.0.0.79-1.1-x86_64.pkg.tar.zst" |
34 | 36 | TMP_PKG="/tmp/package.pkg.tar.zst" |
35 | 37 | OUTPUT_FILE="/tmp/bootstraplinux_ubuntu12_32.tar.xz" |
@@ -69,10 +71,11 @@ post_install() { |
69 | 71 | done |
70 | 72 |
|
71 | 73 | steamos_steam |
| 74 | + |
72 | 75 | # Update users sddm config to reflect the changes |
73 | 76 | echo "Updating Handheld Configs." |
74 | 77 | update_user |
75 | | - #echo "If you are installing this without the CachyOS Installation, please update your username in the /etc/sddm.conf.d/*" |
| 78 | + # echo "If you are installing this without the CachyOS Installation, please update your username in the /etc/sddm.conf.d/*" |
76 | 79 | } |
77 | 80 |
|
78 | 81 | post_upgrade() { |
|
0 commit comments