Package Details: sway-systemd 0.4.1-2

Git Clone URL: https://aur.archlinux.org/sway-systemd.git (read-only, click to copy)
Package Base: sway-systemd
Description: Systemd integration for Sway session
Upstream URL: https://github.com/alebastr/sway-systemd
Keywords: cgroup cgroups environment systemd
Licenses: custom:MIT
Conflicts: sway-services-git
Submitter: Scrumplex
Maintainer: fmauNeko
Last Packager: fmauNeko
Votes: 10
Popularity: 1.00
First Submitted: 2021-10-26 08:25 (UTC)
Last Updated: 2025-11-03 15:42 (UTC)

Latest Comments

mnussbaum commented on 2026-06-30 07:46 (UTC)

It looks like sway-contrib has reverted it now too

OJFord commented on 2026-06-24 06:05 (UTC)

Hm, sway-contrib removed it because it was added to sway, then it was reverted from sway but the removal from sway-contrib not (yet?) reverted.

I've requested the removal be reverted too: https://gitlab.archlinux.org/archlinux/packaging/packages/sway-contrib/-/work_items/3

hour-keeper commented on 2026-06-24 01:39 (UTC) (edited on 2026-06-26 16:06 (UTC) by hour-keeper)

sway-contrib has restored the “sway-sessions.target” file


For some reason, sway-contrib removed sway-session.target, so please apply this patch to fix the issue:

diff --git a/PKGBUILD b/PKGBUILD
index 3043508..311369d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,8 +28,6 @@ check() {
 package() {
   DESTDIR="$pkgdir" ninja -C build install

-  rm "$pkgdir/usr/lib/systemd/user/sway-session.target"
-
   cd "$srcdir/${pkgname%-git}"

   install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"

Refer to:

https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/5d3b06eb71cfba1f46390008cfc7828d726e356a

https://gitlab.archlinux.org/archlinux/packaging/packages/xdg-desktop-portal/-/commit/93e731c0f7a1bf646dd66607c08a90a7b2f7f5a8

OJFord commented on 2025-12-11 15:12 (UTC)

@fmauNeko Can we please remove -Dautoload-configs=all per 2023 comments below? I've just spent some time rediscovering (having forgotten) it as the cause of my broken/ignored keyboard layout.

Upstream maintainer does not enable these by default for reasons, and recommended way to enable them is by adding lines to sway config, not autoload. If people do want them it is easier to do that than to disable them if they're problematic, since that requires first identifying it, and then modifying/deleting the /etc/sway/config.d files, and maintaining that with each update.

Thanks.

snakeroot commented on 2025-03-11 20:06 (UTC)

One needs to reinstall sway-contrib after updating to 0.4.1-2 so that one has a sway-session.target.

fossdd commented on 2024-11-14 11:35 (UTC)

Can we remove sway-session.target since it's provided by sway-contrib.

OJFord commented on 2023-08-02 21:35 (UTC)

+1, that's breaking my layout too (just took me longer to track it down!)

It seems all the autoload does is store some sway configs in /etc/sway/config.d - I'd suggest copying them to /usr/share/sway-systemd instead say, so they can be linked in to the former or not according to users' preferences, some people might want the config from localectl after all.

Alghazanth commented on 2023-07-23 19:39 (UTC)

Script locale1-xkb-config breaks layout switching in Sway and thus should be disabled by default as said by developer.

itaranto commented on 2023-05-21 22:32 (UTC)

Hey! Here's a patch which contains:

  • Remove unnecessary whitespace.
  • Replace $var with ${var}, which is safer.
diff --git a/PKGBUILD b/PKGBUILD
index a70bd38..4e14da2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,28 +13,22 @@ conflicts=("sway-services-git")
 source=("sway-systemd::git+https://github.com/alebastr/sway-systemd.git#tag=v${pkgver}")
 sha512sums=('SKIP')

-
 build() {
-
     arch-meson \
         -Dautostart=true \
         -Dcgroups=enabled \
         -Dlocale1=true \
-        "$srcdir/${pkgname%-git}" build
+        "${srcdir}/${pkgname%-git}" build
     ninja -C build
 }

 check() {
-
     ninja -C build test
 }

 package() {
-
-    DESTDIR="$pkgdir" ninja -C build install
-
-    cd "$srcdir/${pkgname%-git}"
-
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
-    install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
+    DESTDIR="${pkgdir}" ninja -C build install
+    cd "${srcdir}/${pkgname%-git}"
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
 }