From 1e5f33e51fa87f944951214d5f6747317850c86e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 22 Nov 2019 17:17:55 +0100 Subject: [PATCH] sway: session files --- sway/README.md | 2 ++ sway/sway-service.sh | 6 ++++++ sway/sway-systemd.desktop | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 sway/README.md create mode 100755 sway/sway-service.sh create mode 100644 sway/sway-systemd.desktop 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