all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <znavko@tutanota.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Touchpad tap config in slim-service-type configuration
Date: Thu, 28 Mar 2019 18:34:02 +0100 (CET)	[thread overview]
Message-ID: <Lb4MPFs--3-1@tutanota.com> (raw)
In-Reply-To: <Lb4K7wt--3-1@tutanota.com>

[-- Attachment #1: Type: text/plain, Size: 8059 bytes --]

Sorry, it works this way


                                (slim-service-type config =>
                                              (slim-configuration
                                               (xorg-configuration
                                                 (xorg-configuration
                                                  (extra-config
                                                  
'("Section \"InputClass\"
        Identifier \"touchpad\"
        Driver \"libinput\"
        MatchIsTouchpad \"on\"
        Option \"Tapping\" \"on\"
EndSection")
                                 )))))


I have found how to use 'extra-config` function in `info guix` using keyword 'extra-config' and reading this:

     ‘extra-config’ (default: ‘'()’)
          This is a list of strings or objects appended to the
          configuration file.  It is used to pass extra text to be added
          verbatim to the configuration file.


Thank you! Touchpad works, and guix reconfigures system normally.


Mar 28, 2019, 5:24 PM by znavko@tutanota.com:

> 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)
>                     (modify-services      
>                       ;;(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)
>                               ntp-service-type))
>                             (remove (lambda (service)
>                               (eq? (service-kind service)
>                                 avahi-service-type))
>                               (modify-services %desktop-services
>
>                                 (slim-service-type config =>
>                                               (slim-configuration
>                                                (xorg-configuration
>                                                  (xorg-configuration
>                                                   (extra-config
>                                                   
> "Section \"InputClass\"
>         Identifier \"touchpad\"
>         Driver \"libinput\"
>         MatchIsTouchpad \"on\"
>         Option \"Tapping\" \"on\"
> EndSection"
>                                  )))))
>   )  ;end of modify-services 2nd
>
>
>                             )  ;end of remove avahi
>                           )  ;end of remove2 ntp
>                         ;;)  ;end of remove3 networking
>                       ;)  ;end of remove4 wpa-supplicant
>                       (elogind-service-type
>                         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.
>
>      (operating-system
>        ;; ...
>        (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 =>
>                      (slim-configuration
>                        (inherit config)
>                        (xorg-configuration
>                          (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 > rekado@elephly.net <mailto:rekado@elephly.net>> :
>
>>
>> znavko@tutanota.com <mailto:znavko@tutanota.com>>>  writes:
>>
>>> Now yes, but I think it is old, cause startx rests there in slim
>>> config:
>>> https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration <https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration>
>>>
>>
>> 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
>> (slim-configuration
>> (xorg-configuration
>> (xorg-configuration
>> (extra-config "…")))))
>>
>>
>> --
>> Ricardo
>>
>
>


[-- Attachment #2: Type: text/html, Size: 19635 bytes --]

      reply	other threads:[~2019-03-28 17:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-27 15:17 Touchpad tap config in slim-service-type configuration znavko
2019-03-27 16:31 ` Ricardo Wurmus
2019-03-27 16:47   ` znavko
2019-03-27 18:12     ` Ricardo Wurmus
2019-03-28 17:24       ` znavko
2019-03-28 17:34         ` znavko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Lb4MPFs--3-1@tutanota.com \
    --to=znavko@tutanota.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.