Jun's Blog

Output, activities, memo and etc.

i3: Touch-pad: natural scrolling and lock

Natural scrolling

The natural scrolling is like double finger swipe like Mac OSX. As a default of i3 config, the double finger swipe scrolling is opposite direction.

To enable it, add the following file, and restart the X.

$ sudo vi /etc/X11/xorg.conf.d/40-trackpad.conf
Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "Tapping" "True"
        Option "TappingDrag" "True"
        Option "NaturalScrolling" "True"
        Driver "libinput"
EndSection

Lock

I added the lock feature

$ sudo dnf install xss-lock

$ vi ~/.config/i3/config
...
# lock i3
bindsym $mod+Shift+p exec --no-startup-id loginctl lock-session
...

Then mod+shift+c to reload the i3 configuration.

I referred the email Feedback on F34 i3 Spin on Fedora i3 SIG.