Files
kitchenos/rootfs/usr/libexec/sway-systemd
Dustin C. Hatch 39d952d78d
All checks were successful
dustin/kitchenos/pipeline/head This commit looks good
fixup! Add kioskbrowser
2025-08-02 13:57:00 -05:00

24 lines
469 B
Bash
Executable File

#!/bin/sh
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-sway}"
export XDG_SESSION_TYPE=wayland
systemctl --user import-environment \
SWAYSOCK \
XDG_CURRENT_DESKTOP \
XDG_SESSION_DESKTOP \
XDG_SESSION_TYPE \
WAYLAND_DISPLAY
systemctl --user reset-failed
systemctl --user start sway-session.target
shutdown() {
systemctl --user stop sway-session.target
}
trap shutdown INT TERM
swaymsg -t subscribe '["shutdown"]'
shutdown