config/guix/config: Add touchpad configuration

master
Pierre Neidhardt 2018-10-29 09:06:07 +01:00
parent 1f90b299d2
commit d2897651e3
1 changed files with 22 additions and 4 deletions

View File

@ -59,13 +59,27 @@
;; (sha256 ;; (sha256
;; (base32 "127nghkfd4dl5mkf5xl1mij2ylxhkgg08nlh912xwrrjyjv4y9sa")))))) ;; (base32 "127nghkfd4dl5mkf5xl1mij2ylxhkgg08nlh912xwrrjyjv4y9sa"))))))
(define my-xorg-modules (define %mimimi/xorg-modules
;; Everything but Nouveau. ;; Everything but Nouveau.
(delete xf86-video-nouveau %default-xorg-modules)) (delete xf86-video-nouveau %default-xorg-modules))
(define %mimimi/xorg-touchpad
"Section \"InputClass\"
Identifier \"Touchpads\"
Driver \"libinput\"
MatchDevicePath \"/dev/input/event*\"
MatchIsTouchpad \"on\"
Option \"DisableWhileTyping\" \"on\"
Option \"MiddleEmulation\" \"on\"
Option \"ClickMethod\" \"clickfinger\"
Option \"ScrollMethod\" \"twofinger\"
Option \"NaturalScrolling\" \"true\"
EndSection")
;; Use the "desktop" services, which include the X11 ;; Use the "desktop" services, which include the X11
;; log-in service, networking with Wicd, and more. ;; log-in service, networking with Wicd, and more.
(define %my-services (define %mimimi/services
(modify-services (modify-services
%desktop-services %desktop-services
(guix-service-type config => (guix-service-type config =>
@ -90,7 +104,11 @@
(slim-configuration (slim-configuration
(inherit config) (inherit config)
(auto-login? #f) (auto-login? #f)
(startx (xorg-start-command #:modules my-xorg-modules)) (startx (xorg-start-command #:modules %mimimi/xorg-modules
#:configuration-file
(xorg-configuration-file
#:extra-config
(list %mimimi/xorg-touchpad))))
;; TODO: Can't slim pre-fill the username? ;; TODO: Can't slim pre-fill the username?
(default-user "ambrevar"))))) (default-user "ambrevar")))))
@ -185,7 +203,7 @@
(extensions (extensions
(list cups-filters escpr hplip)))) (list cups-filters escpr hplip))))
(tor-service) (tor-service)
%my-services)) %mimimi/services))
;; Allow resolution of '.local' host names with mDNS. ;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)) (name-service-switch %mdns-host-lookup-nss))