[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Touchpad tap config in slim-service-type configuration

From: znavko
Subject: Re: Touchpad tap config in slim-service-type configuration
Date: Thu, 28 Mar 2019 18:24:07 +0100 (CET)

This config not works. It causes error on building xserver:
'ERROR: In procedure scm-error:
In procedure for-each: Wrong type argument: "Section \"InputClass\"\n        Identifier \"touchpad\"\n        Driver \"libinput\"\n        MatchIsTouchpad \"on\"\n        Option \"Tapping\" \"on\"\nEndSection"'

  (services (cons* 
                    ;;(service postgresql-service-type)
                    (service xfce-desktop-service-type)
                      ;;(remove (lambda (service)
                      ;;  (eq? (service-kind service)
                      ;;    wpa-supplicant-service-type))
                      ;;  (remove (lambda (service)
                      ;;    (eq? (service-kind service)
                      ;;      static-networking-service-type))
                          (remove (lambda (service)
                            (eq? (service-kind service)
                            (remove (lambda (service)
                              (eq? (service-kind service)
                              (modify-services %desktop-services

                                (slim-service-type config =>
"Section \"InputClass\"
        Identifier \"touchpad\"
        Driver \"libinput\"
        MatchIsTouchpad \"on\"
        Option \"Tapping\" \"on\"
  )  ;end of modify-services 2nd

                            )  ;end of remove avahi
                          )  ;end of remove2 ntp
                        ;;)  ;end of remove3 networking
                      ;)  ;end of remove4 wpa-supplicant
                        c => (elogind-configuration (handle-lid-switch 'ignore)))
                    );;end of modify-services 1st desktop-services
  ));;end of services

I've found with `info guix` this:

 Let’s say you want your system to use the Turkish keyboard layout
throughout your system—bootloader, console, and Xorg.  Here’s what your
system configuration would look like:

     ;; Using the Turkish layout for the bootloader, the console,
     ;; and for Xorg.

       ;; ...
       (keyboard-layout (keyboard-layout "tr"))  ;for the console
       (bootloader (bootloader-configuration
                     (bootloader grub-efi-bootloader)
                     (target "/boot/efi")
                     (keyboard-layout keyboard-layout))) ;for GRUB
       (services (modify-services %desktop-services
                   (slim-service-type config =>
                       (inherit config)
                         (xorg-configuration             ;for Xorg
                           (keyboard-layout keyboard-layout))))))))

   In the example above, for GRUB and for Xorg, we just refer to the
‘keyboard-layout’ field defined above, but we could just as well refer
to a different layout.

But word 'touchpad' absents in `ingo guix`. I do not know what to do.

Mar 27, 2019, 6:12 PM by address@hidden:

address@hidden writes:
Now yes, but I think it is old, cause startx rests there in slim

A copy of the manual that matches the version of Guix you have installed
comes with Guix itself. I suggest using that up-to-date manual instead
of the manual on the web which matches the latest release.

You can access the manual with “info guix” on the command line (or with
the equivalent in Emacs, which has a much better info reader). Hit “i”
for the index and type “slim-configuration” because that’s what the
error says has an error.

There you’ll find that “slim-configuration” no longer has a “startx”
field, but instead offers an “xorg-configuration” field. So we hit “i”
again and type “xorg-configuration” to get more information about the
valid values…

The only reason why you passed a value for “startx” originally was just
to pass an Xorg configuration snippet via “#:extra-config”. According
to the manual for “xorg-configuration” you can now do this directly via
the “extra-config” field of the “xorg-configuration” record.

So you’ll probably end up with something like this:

(service slim-service-type
(extra-config "…")))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]