diff --git a/sway/README.md b/sway/README.md new file mode 100644 index 0000000..2bdcaf8 --- /dev/null +++ b/sway/README.md @@ -0,0 +1,2 @@ +Put sway-systemd.desktop in usr/share/wayland-sessions/ +Put sway-service.sh in /usr/local/bin diff --git a/sway/sway-service.sh b/sway/sway-service.sh new file mode 100755 index 0000000..9055e32 --- /dev/null +++ b/sway/sway-service.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +# first import environment variables from the login manager +systemctl --user import-environment +# then start the service +exec systemctl --wait --user start sway.service diff --git a/sway/sway-systemd.desktop b/sway/sway-systemd.desktop new file mode 100644 index 0000000..bd611b3 --- /dev/null +++ b/sway/sway-systemd.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Sway Service +Comment=SirCmpwn's Wayland window manager as a systemd service +Exec=sway-service.sh +Type=Application