fixup! Add kioskbrowser
All checks were successful
dustin/kitchenos/pipeline/head This commit looks good
All checks were successful
dustin/kitchenos/pipeline/head This commit looks good
This commit is contained in:
23
rootfs/usr/libexec/sway-systemd
Executable file
23
rootfs/usr/libexec/sway-systemd
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user