From 85a34fd485171ff0fa8f775c6cbe5ff5a347767d Mon Sep 17 00:00:00 2001 From: bhaiest Date: Wed, 20 Apr 2022 13:52:58 +0300 Subject: [PATCH] Deck UX by default --- airootfs/etc/holoinstall/steamos-session-select | 3 ++- airootfs/usr/local/bin/holoinstall | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/airootfs/etc/holoinstall/steamos-session-select b/airootfs/etc/holoinstall/steamos-session-select index 8e29e12..354bed9 100755 --- a/airootfs/etc/holoinstall/steamos-session-select +++ b/airootfs/etc/holoinstall/steamos-session-select @@ -1,2 +1,3 @@ #!/bin/bash -exec pkill -f "gamescope*" +exec sudo pkill -f "gamesc*" +exec loginctl terminate-session $XDG_SESSION_ID diff --git a/airootfs/usr/local/bin/holoinstall b/airootfs/usr/local/bin/holoinstall index cfe1089..3df02fd 100755 --- a/airootfs/usr/local/bin/holoinstall +++ b/airootfs/usr/local/bin/holoinstall @@ -70,10 +70,17 @@ arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_UPDATE} # Installs DE arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} archlinux-keyring curl tar yay git go plasma-meta plasma-nm ffmpegthumbs kdegraphics-thumbnailers gwenview glxinfo dolphin konsole steamdeck-kde-presets chromium steam-jupiter-stable gamescope mangohud vulkan-radeon lib32-vulkan-radeon jupiter-hw-support pipewire-alsa pipewire-jack lib32-pipewire-jack pipewire-pulse pipewire-v4l2 spectacle lib32-pipewire-v4l2 pipewire lib32-pipewire pipewire-media-session # Installs more stuff +echo "Installing Bluetooth dependencies..." arch-chroot ${HOLO_INSTALL_DIR} ${CMD_PACMAN_INSTALL} bluez bluez-utils cheeze blueman bluez-qt arch-chroot ${HOLO_INSTALL_DIR} systemctl enable bluetooth arch-chroot ${HOLO_INSTALL_DIR} usermod -a -G rfkill ${HOLOUSER} +echo "Configuring Steam Deck UI by default..." +mkdir ${HOLO_INSTALL_DIR}/etc/sddm.conf.d +echo "[Autologin] +User=${USER} +Session=gamescope-wayland.desktop" >> ${HOLO_INSTALL_DIR}/etc/sddm.conf.d/autologin.conf # Services +echo "Setting up locale..." echo "${SYSTEM_LOCALE}" >> ${HOLO_INSTALL_DIR}/etc/locale.gen arch-chroot ${HOLO_INSTALL_DIR} locale-gen echo "LANG=$(echo ${SYSTEM_LOCALE} | cut -d' ' -f1)" > ${HOLO_INSTALL_DIR}/etc/locale.conf