PS2/2: Add proper session select and install kwrite

This commit is contained in:
bhaiest 2022-05-03 08:57:12 +00:00
parent 46c3162c0f
commit fa8bcad3a6
2 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,19 @@
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=steamos-session-select
GenericName[en_US]=
GenericName=
Icon=steamdeck-gaming-return
MimeType=
Name[en_US]=Return to Gaming mode
Name=Return to Gaming mode
Path=/usr/bin/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

11
airootfs/etc/holoinstall/steamos-session-select Executable file → Normal file
View File

@ -1,3 +1,8 @@
#!/bin/bash
exec sudo pkill -f "gamesc*"
exec loginctl terminate-session $XDG_SESSION_ID
#!/bin/zsh
if [[ "${DESKTOP_SESSION}" == "plasma" ]]; then
sudo pkexec sed -i 's/plasma/gamescope-wayland/g' /etc/sddm.conf.d/autologin.conf
sudo pkill -f "gamescope*" && sudo systemctl restart display-manager
else
sudo pkexec sed -i 's/gamescope-wayland/plasma/g' /etc/sddm.conf.d/autologin.conf
sudo systemctl restart display-manager && sudo pkexec chvt 1 && sudo pkill -f "gamescope*"
fi