mirror of
https://github.com/bhaiest/holoiso.git
synced 2024-11-15 15:52:33 +01:00
PS2/2: Add proper session select and install kwrite
This commit is contained in:
parent
46c3162c0f
commit
fa8bcad3a6
19
airootfs/etc/holoinstall/steamos-gamemode.desktop
Normal file
19
airootfs/etc/holoinstall/steamos-gamemode.desktop
Normal 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
11
airootfs/etc/holoinstall/steamos-session-select
Executable file → Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user