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: 9
Popularity: 0.000341
First Submitted: 2021-10-26 08:25 (UTC)
Last Updated: 2025-11-03 15:42 (UTC)

Latest Comments

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"
 }