How To Install sxhkd on Fedora 36

In this tutorial we learn how to install sxhkd in Fedora 36. sxhkd is Simple X hotkey daemon

Introduction

In this tutorial we learn how to install sxhkd on Fedora 36.

What is sxhkd

sxhkd is an X daemon that reacts to input events by executing commands. Its configuration file is a series of bindings that define the associations between the input events and the commands. The format of the configuration file supports a simple notation for mapping multiple shortcuts to multiple commands in parallel.

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

Install sxhkd 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 sxhkd using dnf by running the following command:

sudo dnf -y install sxhkd

Install sxhkd 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 sxhkd using yum by running the following command:

sudo yum -y install sxhkd

How To Uninstall sxhkd on Fedora 36

To uninstall only the sxhkd package we can use the following command:

sudo dnf remove sxhkd

sxhkd Package Contents on Fedora 36

/usr/bin/sxhkd
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/5fae6b222b75a2f9d2f8f84c00150af380c853
/usr/lib/systemd/system/sxhkd.service
/usr/share/doc/sxhkd
/usr/share/doc/sxhkd/README.md
/usr/share/doc/sxhkd/examples
/usr/share/doc/sxhkd/examples/background_shell
/usr/share/doc/sxhkd/examples/background_shell/profile
/usr/share/doc/sxhkd/examples/background_shell/shell
/usr/share/doc/sxhkd/examples/background_shell/sxhkdrc
/usr/share/doc/sxhkd/examples/background_shell/xinitrc
/usr/share/doc/sxhkd/examples/notification
/usr/share/doc/sxhkd/examples/notification/autostart
/usr/share/doc/sxhkd/examples/notification/pam_environment
/usr/share/doc/sxhkd/examples/notification/sxhkd_notify
/usr/share/doc/sxhkd/examples/notification/xinitrc
/usr/share/licenses/sxhkd
/usr/share/licenses/sxhkd/LICENSE
/usr/share/man/man1/sxhkd.1.gz

References

Summary

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