Install the system-wide dependencies: python 2.7 dbus-python xautolock Install the python package: sudo pip install slideshow-screensaver Configure the screensaver to run automatically: Disable any other screensavers. But then my Plasma configuration self-destructed by chance, I had to recover it from backup and I started thinking what and how much I actually need from KDE exactly. This is a very simple app which, for now, might not play nicely with xscreensaver, gnome-screensaver, etc.
The benefit that this program has over the combination of the xlock and xautolock programs is the ease with which new graphics hacks can be installed: you dont need to recompile this program to add a new display mode, you just change some resource settings. Now if you enter xflock4, you can see that i3lock is triggered, ok but we still need to make the autolock work when the system is idle this can be achieved by using xautolock, go to Settings>Sessions and Startup and create a new application autostart and enter the following command xautolock -locker xflock4 -time 10 -corners 0-00 When I started using EXWM, I thought that using it together with KDE would be the best combination. The purpose of xscreensaver is to display pretty pictures on your screen when it is. The benefit that xscreensaver has over the combination of the xlock and xautolock programs is the ease with which new graphics hacks can be installed. c000000 is for black background #! /bin/bash The xscreensaver daemon takes care of detecting when the user is idle, locking, and checking passwords and all the other book-keeping all the other programs need to do is draw. The above command could be put in autostart so that it runs each time the user logs in or reboots. This will logout user pi after 5 min idle. xautolock -time 5 -locker 'sudo pkill -u pi' &. Now if you type i3lock on the terminal you can see that it works well, with a white background, next all I had to do was to create an executable file called slock in /usr/bin and enter the following text: You can run pkill -u pi to force logout user pi. I finally parted my ways with ubuntu a couple of days back and installed arch linux and I really think it was a good decision since I learnt a whole set of new things in just these couple of days, like I dint know how the mounting of a usb drive was done in the background, but now since everything in arch has to be done manually am learning quite a lot of things.Īm using xfce with arch and for last 2 days I’ve been searching for good screen lockers since xflock4 supports only xscreensaver, gnome-screensaver, slock and xlockmore and xscreensaver is the recommended one I tried it but I dint quite liked it so I looked for some alternatives and I came across i3lock, I’d seen it before and I thought of trying it so I kind of hacked around a bit to fool xfce into considering i3lock as slock, I think similar can be done with other distros as well.įirst install i3lock from official repository: