How To Install xss-lock on Fedora 36
Introduction
In this tutorial we learn how to install xss-lock
on Fedora 36.
What is xss-lock
xss-lock hooks up your favorite locker to the MIT screen saver extension for X and also to systemd’s login manager. The locker is executed in response to events from these two sources - X signals when screen saver activation is forced or after a period of user inactivity (as set with
xset s TIMEOUT
). In the latter case, the notifier command, if specified, is executed first. - The login manager can also request that the session be locked; as a result ofloginctl lock-sessions
, for example. Additionally, xss-lock uses the inhibition logic to lock the screen before the system goes to sleep. xss-lock waits for the locker to exit – or kills it when screen saver deactivation or session unlocking is forced – so the command should not fork. Also, xss-lock manages the idle hint on the login session. The idle state of the session is directly linked to user activity as reported by X (except when the notifier runs before locking the screen). When all sessions are idle, the login manager can take action (such as suspending the system) after a preconfigured delay.
We can use yum
or dnf
to install xss-lock
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install xss-lock.
Install xss-lock 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 xss-lock
using dnf
by running the following command:
sudo dnf -y install xss-lock
Install xss-lock 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 xss-lock
using yum
by running the following command:
sudo yum -y install xss-lock
How To Uninstall xss-lock on Fedora 36
To uninstall only the xss-lock
package we can use the following command:
sudo dnf remove xss-lock
xss-lock Package Contents on Fedora 36
/usr/bin/xss-lock
/usr/lib/.build-id
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/8779abda13812e3a54ae5ce7c28a9a10985b38
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/xss-lock
/usr/share/doc/xss-lock
/usr/share/doc/xss-lock/NEWS
/usr/share/doc/xss-lock/dim-screen.sh
/usr/share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh
/usr/share/doc/xss-lock/transfer-sleep-lock-i3lock.sh
/usr/share/doc/xss-lock/xdg-screensaver.patch
/usr/share/licenses/xss-lock
/usr/share/licenses/xss-lock/LICENSE
/usr/share/man/man1/xss-lock.1.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_xss-lock
References
Summary
In this tutorial we learn how to install xss-lock
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).