notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2025Q3
sway i3-compatible Wayland compositor
1.11_1 x11-wm on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.11_1Version of this port present on the latest quarterly branch.
Maintainer: jbeich@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-09-15 11:51:05
Last Update: 2025-09-15 11:50:09
Commit Hash: 747f2ea
Also Listed In: wayland
License: MIT
WWW:
https://swaywm.org/
Description:
Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3's features, plus a few extras.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (38 items)
Collapse this list.
  1. /usr/local/share/licenses/sway-1.11_1/catalog.mk
  2. /usr/local/share/licenses/sway-1.11_1/LICENSE
  3. /usr/local/share/licenses/sway-1.11_1/MIT
  4. bin/sway
  5. bin/swaybar
  6. bin/swaymsg
  7. bin/swaynag
  8. @sample etc/sway/config.sample
  9. share/man/man1/sway.1.gz
  10. share/man/man1/swaymsg.1.gz
  11. share/man/man1/swaynag.1.gz
  12. share/man/man5/sway-bar.5.gz
  13. share/man/man5/sway-input.5.gz
  14. share/man/man5/sway-output.5.gz
  15. share/man/man5/sway.5.gz
  16. share/man/man5/swaynag.5.gz
  17. share/man/man7/sway-ipc.7.gz
  18. share/man/man7/swaybar-protocol.7.gz
  19. share/backgrounds/sway/Sway_Wallpaper_Blue_1136x640.png
  20. share/backgrounds/sway/Sway_Wallpaper_Blue_1136x640_Portrait.png
  21. share/backgrounds/sway/Sway_Wallpaper_Blue_1366x768.png
  22. share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png
  23. share/backgrounds/sway/Sway_Wallpaper_Blue_2048x1536.png
  24. share/backgrounds/sway/Sway_Wallpaper_Blue_2048x1536_Portrait.png
  25. share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024.png
  26. share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024_Portrait.png
  27. share/bash-completion/completions/sway
  28. share/bash-completion/completions/swaybar
  29. share/bash-completion/completions/swaymsg
  30. share/fish/vendor_completions.d/sway.fish
  31. share/fish/vendor_completions.d/swaymsg.fish
  32. share/fish/vendor_completions.d/swaynag.fish
  33. share/wayland-sessions/sway.desktop
  34. share/zsh/site-functions/_sway
  35. share/zsh/site-functions/_swaymsg
  36. @owner
  37. @group
  38. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • sway>0:x11-wm/sway
Conflicts:
CONFLICTS_INSTALL:
  • sway-devel
  • swayfx
To install the port:
cd /usr/ports/x11-wm/sway/ && make install clean
To add the package, run one of these commands:
  • pkg install x11-wm/sway
  • pkg install sway
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: sway
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1749416947 SHA256 (swaywm-sway-1.11_GH0.tar.gz) = 034ec4519326d6af5275814700dde46e852c5174614109affe4c86b2fbee062a SIZE (swaywm-sway-1.11_GH0.tar.gz) = 5583731

No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. evdev-proto>0 : devel/evdev-proto
  2. wayland-protocols>=1.24 : graphics/wayland-protocols
  3. scdoc>=1.9.2 : textproc/scdoc
  4. meson : devel/meson
  5. ninja : devel/ninja
  6. pkgconf>=1.3.0_1 : devel/pkgconf
  7. pixman-1.pc : x11/pixman
  8. xcb.pc : x11/libxcb
Runtime dependencies:
  1. swaybg : x11/swaybg
  2. pixman-1.pc : x11/pixman
  3. xcb.pc : x11/libxcb
Library dependencies:
  1. libjson-c.so : devel/json-c
  2. libevdev.so : devel/libevdev
  3. libudev.so : devel/libudev-devd
  4. libpcre2-8.so : devel/pcre2
  5. libdrm.so : graphics/libdrm
  6. libwayland-egl.so : graphics/wayland
  7. libwlroots-0.19.so : x11-toolkits/wlroots019
  8. libinput.so : x11/libinput
  9. libxkbcommon.so : x11/libxkbcommon
  10. libbasu.so : devel/basu
  11. libxcb-icccm.so : x11/xcb-util-wm
  12. libcairo.so : graphics/cairo
  13. libgdk_pixbuf-2.0.so : graphics/gdk-pixbuf2
  14. libglib-2.0.so : devel/glib20
  15. libintl.so : devel/gettext-runtime
  16. libharfbuzz.so : print/harfbuzz
  17. libpango-1.0.so : x11-toolkits/pango
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for sway-1.11_1: BASU=on: Tray in swaybar via basu MANPAGES=on: Build and/or install manual pages PIXBUF=on: GDK-PixBuf library support SWAYBG=on: Default command to set background X11=on: X11 (graphics) support ===> Use 'make config' to modify these settings
Options name:
x11-wm_sway
USES:
compiler:c11 gnome meson pkgconfig xorg
pkg-message:
For install:
Notes: - sway(1) can use mac_priority(4) to avoid stutter during high load
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/swaywm/sway/tar.gz/1.11?dummy=/
Collapse this list.

Number of commits found: 3

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.11_1
15 Sep 2025 11:50:09
commit hash: 747f2eaa05d4883affce21253a2ac25fbb296407commit hash: 747f2eaa05d4883affce21253a2ac25fbb296407commit hash: 747f2eaa05d4883affce21253a2ac25fbb296407commit hash: 747f2eaa05d4883affce21253a2ac25fbb296407 files touched by this commit
Jan Beich (jbeich) search for other commits by this committer
x11-wm/sway: tabify patch to match existing style

(cherry picked from commit 6cb13b9258df45066de9ecc6f9bcdd8009f53301)
1.11_1
15 Sep 2025 11:50:08
commit hash: 2d6e34f9d399a8f54d148adcdcf5f26d19a47ff2commit hash: 2d6e34f9d399a8f54d148adcdcf5f26d19a47ff2commit hash: 2d6e34f9d399a8f54d148adcdcf5f26d19a47ff2commit hash: 2d6e34f9d399a8f54d148adcdcf5f26d19a47ff2 files touched by this commit
Jan Beich (jbeich) search for other commits by this committer
x11-wm/sway: unbreak config reload after bb43067a6928

Obtained from:	upstream

(cherry picked from commit fcab17cb653d35013194f69e9c97e906eb53a1ef)
1.11
15 Sep 2025 11:41:25
commit hash: a0f01076124541c2fef0ec7e21ca93baa3e0e232commit hash: a0f01076124541c2fef0ec7e21ca93baa3e0e232commit hash: a0f01076124541c2fef0ec7e21ca93baa3e0e232commit hash: a0f01076124541c2fef0ec7e21ca93baa3e0e232 files touched by this commit
Jan Beich (jbeich) search for other commits by this committer
x11-wm/sway: disable wordexp(3) workaround on -CURRENT

(cherry picked from commit 86349a45e9763cba310a33310e0585e15652e69b)

Number of commits found: 3