fix(just): Add GNOME autologin support

This commit is contained in:
RJ Trujillo 2023-08-01 20:51:27 -06:00
parent cbd3fa6bee
commit bf3e0b9172
2 changed files with 17 additions and 4 deletions

View File

@ -1,10 +1,18 @@
enable-gamescope-autologin:
systemctl disable --now plasma-autologin
if grep "gnome" <<< $(rpm-ostree status); then
systemctl disable --now gnome-autologin
else
systemctl disable --now plasma-autologin
fi
systemctl enable --now gamescope-autologin
enable-plasma-autologin:
enable-desktop-autologin:
systemctl disable --now gamescope-autologin
systemctl enable --now plasma-autologin
if grep "gnome" <<< $(rpm-ostree status); then
systemctl enable --now gnome-autologin
else
systemctl enable --now plasma-autologin
fi
set-steamos-kargs:
echo 'Setting kargs...'

View File

@ -27,7 +27,12 @@ remove-nix:
curl -s https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/uninstaller-scripts/silverblue-nix-uninstaller.sh | sudo bash
enable-big-picture:
systemctl enable --now plasma-autologin
#!/usr/bin/env bash
if grep "gnome" <<< $(rpm-ostree status); then
systemctl enable --now gnome-autologin
else
systemctl enable --now plasma-autologin
fi
sed -i 's@/usr/bin/steam-runtime -silent %U@/usr/bin/steam-runtime -bigpicture %U@g' ~/.config/autostart/bazzite-arch-steam-silent.desktop
mv ~/.config/autostart/bazzite-arch-steam-silent.desktop ~/.config/autostart/bazzite-arch-steam-bigpicture.desktop