How To Install sway-systemd on Fedora 36

In this tutorial we learn how to install sway-systemd in Fedora 36. sway-systemd is Systemd integration for Sway session

Introduction

In this tutorial we learn how to install sway-systemd on Fedora 36.

What is sway-systemd

Systemd integration for Sway session. The goal of this project is to provide a minimal set of configuration files and scripts required for running Sway in a systemd environment. This includes several areas of integration - Propagate required variables to the systemd user session environment. - Define sway-session.target for starting user services. - Place GUI applications into a systemd scopes for systemd-oomd compatibility.

We can use yum or dnf to install sway-systemd on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install sway-systemd.

Install sway-systemd on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install sway-systemd using dnf by running the following command:

sudo dnf -y install sway-systemd

Install sway-systemd on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install sway-systemd using yum by running the following command:

sudo yum -y install sway-systemd

How To Uninstall sway-systemd on Fedora 36

To uninstall only the sway-systemd package we can use the following command:

sudo dnf remove sway-systemd

sway-systemd Package Contents on Fedora 36

/etc/sway/config.d/10-systemd-cgroups.conf
/etc/sway/config.d/10-systemd-session.conf
/usr/lib/systemd/user/sway-session.target
/usr/libexec/sway-systemd
/usr/libexec/sway-systemd/assign-cgroups.py
/usr/libexec/sway-systemd/session.sh
/usr/share/doc/sway-systemd
/usr/share/doc/sway-systemd/README.md
/usr/share/licenses/sway-systemd
/usr/share/licenses/sway-systemd/LICENSE

References

Summary

In this tutorial we learn how to install sway-systemd on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).