Sunday, 22 July 2018

XScreenSaver autolock on suspend Fedora 28

Lock screen after suspend in Fedora.
1
sudo vim /etc/systemd/system/xscreensaver.service
Content of the file:
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Lock X session using xscreensaver
Before=sleep.target
 
[Service]
User=ptacnikt
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/bin/xscreensaver-command -lock
 
[Install]
WantedBy=sleep.target

1
systemctl enable xscreensaver.service

Try to close and open the lid.

Saturday, 10 February 2018

Touchpad config fedora 27 - libinput

Natural scrolling (mac-like) and touchpad tap enabled.
1
sudo vim /etc/X11/xorg.conf.d/30-touchpad.conf
Content of the file:
1
2
3
4
5
6
7
8
Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
    Option "TappingButtonMap" "lmr"
    Option "NaturalScrolling" "true"
EndSection
Logout, login, done.