[feat] Encrypted mount unmount disks (dmenu)
[dotfiles_afify.git] / .scripts / input.sh
blob479c7379b89823d2c758792de3656ee3f493ed44
1 #!/usr/bin/env bash
3 xdir="/usr/share/X11/xorg.conf.d"
5 # arabic and touchpad
6 echo "# Match on all types of devices but joysticks
7 Section \"InputClass\"
8 Identifier \"libinput pointer catchall\"
9 MatchIsPointer \"on\"
10 MatchDevicePath \"/dev/input/event*\"
11 Driver \"libinput\"
12 EndSection
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\"
20 Driver \"libinput\"
21 EndSection
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\"
30 Driver \"libinput\"
31 EndSection
33 Section \"InputClass\"
34 Identifier \"libinput touchscreen catchall\"
35 MatchIsTouchscreen \"on\"
36 MatchDevicePath \"/dev/input/event*\"
37 Driver \"libinput\"
38 EndSection
40 Section \"InputClass\"
41 Identifier \"libinput tablet catchall\"
42 MatchIsTablet \"on\"
43 MatchDevicePath \"/dev/input/event*\"
44 Driver \"libinput\"
45 EndSection"| sudo tee -a $xdir/40-libinput.conf > /dev/null