# Inputs
#
# PUBLIC at `http://reluk.ca/sys/computer/workstation/etc/` — for no particular reason.


    Section "InputClass"
        Identifier "Keyboard"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*" # [RLI]
        Driver "libinput" # [LI]

        Option "CoreKeyboard" # [IM]
        Option "AutoServerLayout" "true"

        Option "XkbOptions" "terminate:ctrl_alt_bksp" # https://wiki.gentoo.org/wiki/Xorg/Guide
          # Setting any other key combination does not appear to be easy.
          # https://unix.stackexchange.com/questions/8962
        EndSection



    Section "InputClass"
        Identifier "Mouse"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*" # [RLI]
        Driver "libinput" # [LI]

        Option "CorePointer" # [IM]
        Option "AutoServerLayout" "true"

        Option "LeftHanded" "true"
        Option "AccelProfile" "adaptive" # One of `flat` or `adaptive`. [PA]

      # Option "AccelSpeed" "-0.45" # Logitech original (unknown model)
      # Option "AccelSpeed" "-0.80" # Logitech M100
        Option "AccelSpeed" "-1.00" # AST (fallback mouse)
          # From -1.0 (slowest) to 0.0 (default) to 1.0 (fastest). [PA]

        EndSection



# NOTES
# ─────
#   IM · An inconsistency in the manual: both ‘deprecated’ and ‘should normally be used’.
#        man 5 xorg.conf
#
#   LI · man 1 libinput, man 4 libinput, https://wayland.freedesktop.org/libinput/doc/latest/
#
#   PA · https://wayland.freedesktop.org/libinput/doc/latest/configuration.html#pointer-acceleration
#        man 4 libinput
#
#        Items in the log such as `Option "AccelerationScheme" "none"` — otherwise a mystery —
#        might simply be the X server’s translation of my own (`libinput`) configuration items.
#
#   RLI  Configuration for device driver `libinput` as recommended by Gentoo.  In fact, they recommend
#        including file `/usr/share/X11/xorg.conf.d/40-libinput.conf` as part of the configuration.
#        https://wiki.gentoo.org/wiki/Libinput
#
#        Instead I copy and insert the necessary lines here, which I think aids clarity.  Yet X somehow
#        includes the whole file regardless.  No matter, I guess.