Skip to content

Commit 9ce4337

Browse files
committed
core/steam: handle power key
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 22341b8 commit 9ce4337

File tree

1 file changed

+2
-1
lines changed
  • configs/core/steam/buildroot_ext/package/skiff-core-steam/coreenv

1 file changed

+2
-1
lines changed

configs/core/steam/buildroot_ext/package/skiff-core-steam/coreenv/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ RUN useradd -m core && \
4848
usermod -aG nopasswdlogin core && \
4949
printf "[Autologin]\nUser=core\nSession=plasma.desktop\nRelogin=false\n\n[General]\nNumlockOnWaylandEnable=true" | sudo tee /etc/sddm.conf.d/10-autologin.conf && \
5050
sed -i '0,/^[^#]/s//auth sufficient pam_succeed_if.so user ingroup nopasswdlogin\n&/' /etc/pam.d/sddm-autologin && \
51-
printf "[Unit]\nDescription=Fix Steam directory permissions\nAfter=graphical.target\n\n[Service]\nType=oneshot\nExecStart=/bin/chown core:core /home/core/.local/ /home/core/.local/share /home/core/.local/share/Steam\n\n[Install]\nWantedBy=graphical.target" | sudo tee /etc/systemd/system/fix-steam-perms.service && sudo systemctl enable fix-steam-perms.service
51+
printf "[Unit]\nDescription=Fix Steam directory permissions\nAfter=graphical.target\n\n[Service]\nType=oneshot\nExecStart=/bin/chown core:core /home/core/.local/ /home/core/.local/share /home/core/.local/share/Steam\n\n[Install]\nWantedBy=graphical.target" | sudo tee /etc/systemd/system/fix-steam-perms.service && sudo systemctl enable fix-steam-perms.service && \
52+
sed -i -z 's/#HandlePowerKey=poweroff\n#HandlePowerKeyLongPress=ignore/HandlePowerKey=suspend\nHandlePowerKeyLongPress=poweroff/' /etc/systemd/logind.conf
5253

5354
# minimize image size by squashing OS to 1 layer.
5455
FROM scratch

0 commit comments

Comments
 (0)