3 xdir
="/usr/share/X11/xorg.conf.d"
6 echo "# Match on all types of devices but joysticks
8 Identifier \"libinput pointer catchall\"
10 MatchDevicePath \"/dev/input/event*\"
14 Section \"InputClass\"
15 Identifier \"libinput keyboard catchall\"
16 MatchIsKeyboard \"on\"
17 MatchDevicePath \"/dev/input/event*\"
18 option \"XkbLayout\" \"us, ar\"
19 option \"XkbOptions\" \"grp:win_space_toggle\"
23 Section \"InputClass\"
24 Identifier \"libinput touchpad catchall\"
25 MatchIsTouchpad \"on\"
26 MatchDevicePath \"/dev/input/event*\"
27 Option \"NaturalScrolling\" \"on\"
28 Option \"ScrollMethod\" \"two-finger\"
29 Option \"Tapping\" \"on\"
33 Section \"InputClass\"
34 Identifier \"libinput touchscreen catchall\"
35 MatchIsTouchscreen \"on\"
36 MatchDevicePath \"/dev/input/event*\"
40 Section \"InputClass\"
41 Identifier \"libinput tablet catchall\"
43 MatchDevicePath \"/dev/input/event*\"
45 EndSection"| sudo
tee -a $xdir/40-libinput.conf
> /dev
/null