* Re: Touchpad tap again
[not found] <LYMBSEO--3-1@tutanota.com-LYMBa4I----1>
@ 2019-02-10 12:13 ` znavko
2019-02-10 14:06 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: znavko @ 2019-02-10 12:13 UTC (permalink / raw)
To: Znavko; +Cc: Help Guix
[-- Attachment #1.1: Type: text/plain, Size: 8189 bytes --]
Sorry, I forgot (modify-services) function again.
Trying first config was unsuccessful, but using examples from here https://wiki.archlinux.org/index.php/Libinput <https://wiki.archlinux.org/index.php/Libinput> I've got my touchpad reacts on tap and double-clicks.
I think the driver option is important for me Driver \"libinput\"
Here's my workable config for touchpad in GuixSD:
(services (cons*
;;(service postgresql-service-type)
(xfce-desktop-service)
(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
(inherit config)
(startx
(xorg-start-command
#:configuration-file
(xorg-configuration-file
#:extra-config
'(
"Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection"
))))))
)
) ;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 desktop-services
));;end of services
See attachment with full config.scm
Thanks, Pierr Neidhardt for that link here https://lists.gnu.org/archive/html/help-guix/2018-10/msg00140.html <https://lists.gnu.org/archive/html/help-guix/2018-10/msg00140.html> !
Feb 10, 2019, 11:36 AM by znavko@tutanota.com:
>
> Hello! I am not able to determine what is the problem while I'm trying to reconfigure system.
> I only add code for touchpad tap from 63 to 78 lines in config.scm (see attachment).
>
> # guix system reconfigure /etc/config.scm
> /etc/config.scm:47:20: error: config: unbound variable
> hint: Did you forget a `use-modules' form?
>
> Please, what I need to use in use-modules section?
>
> =========part f config.scm=========
> (use-modules (gnu) (gnu system nss)
> (gnu system locale) ;;for locale-definition
> (gnu services desktop)
> ;;(gnu services dns) ;;for dnsmasq
> (srfi srfi-1) ;;for remove function
> (gnu services networking) ;;for remove ntp
> (gnu services avahi) ;;for remove avahi
> (gnu services xorg)
> ;;(gnu services databases);;for postgres
> (gnu packages admin) ;;for wpa_supplicant
>
> )
> (use-service-modules desktop)
> (use-package-modules certs gnome)
> ....
>
> (services (cons*
> ;;(service postgresql-service-type)
> (xfce-desktop-service)
> (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))
> %desktop-services
>
> (slim-service-type config =>
> (slim-configuration
> (inherit config)
> (startx
> (xorg-start-command
> #:configuration-file
> (xorg-configuration-file
> #:extra-config
> '(
> "Section \"InputClass\"
> Identifier \"touchpad-all\"
> MatchIsTouchpad \"on\"
> Option \"Tapping\" \"on\"
> EndSection"
> ))))))
>
>
> ) ;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 desktop-services
> ));;end of services
> ====================
>
[-- Attachment #1.2: Type: text/html, Size: 20980 bytes --]
[-- Attachment #2: config.scm--touchpad --]
[-- Type: application/octet-stream, Size: 4005 bytes --]
$ cat /etc/config.scm
;;this is znavko's cute config
(use-modules (gnu) (gnu system nss)
(gnu system locale) ;;for locale-definition
(gnu services desktop)
;;(gnu services dns) ;;for dnsmasq
(srfi srfi-1) ;;for remove function
(gnu services networking) ;;for remove ntp
(gnu services avahi) ;;for remove avahi
(gnu services xorg)
;;(gnu services databases);;for postgres
(gnu packages admin) ;;for wpa_supplicant
)
(use-service-modules desktop)
(use-package-modules certs gnome)
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device "/dev/sda1") (mount-point "/") (type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sda2"))
(users (cons* (user-account (name "bob") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/bob"))
(user-account (name "alice") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/alice"))
(user-account (name "mom") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/mom"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
wpa-supplicant
isc-dhcp
%base-packages))
(services (cons*
;;(service postgresql-service-type)
(xfce-desktop-service)
(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
(inherit config)
(startx
(xorg-start-command
#:configuration-file
(xorg-configuration-file
#:extra-config
'(
"Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection"
))))))
)
) ;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 desktop-services
));;end of services
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Touchpad tap again
@ 2019-02-10 11:36 znavko
0 siblings, 0 replies; 3+ messages in thread
From: znavko @ 2019-02-10 11:36 UTC (permalink / raw)
To: Help Guix
[-- Attachment #1.1: Type: text/plain, Size: 4218 bytes --]
Hello! I am not able to determine what is the problem while I'm trying to reconfigure system.
I only add code for touchpad tap from 63 to 78 lines in config.scm (see attachment).
# guix system reconfigure /etc/config.scm
/etc/config.scm:47:20: error: config: unbound variable
hint: Did you forget a `use-modules' form?
Please, what I need to use in use-modules section?
=========part f config.scm=========
(use-modules (gnu) (gnu system nss)
(gnu system locale) ;;for locale-definition
(gnu services desktop)
;;(gnu services dns) ;;for dnsmasq
(srfi srfi-1) ;;for remove function
(gnu services networking) ;;for remove ntp
(gnu services avahi) ;;for remove avahi
(gnu services xorg)
;;(gnu services databases);;for postgres
(gnu packages admin) ;;for wpa_supplicant
)
(use-service-modules desktop)
(use-package-modules certs gnome)....
(services (cons*
;;(service postgresql-service-type)
(xfce-desktop-service)
(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))
%desktop-services
(slim-service-type config =>
(slim-configuration
(inherit config)
(startx
(xorg-start-command
#:configuration-file
(xorg-configuration-file
#:extra-config
'(
"Section \"InputClass\"
Identifier \"touchpad-all\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection"
))))))
) ;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 desktop-services
));;end of services====================
[-- Attachment #1.2: Type: text/html, Size: 9532 bytes --]
[-- Attachment #2: config.scm--touchpad --]
[-- Type: application/octet-stream, Size: 3939 bytes --]
;;this is znavko's cute config
(use-modules (gnu) (gnu system nss)
(gnu system locale) ;;for locale-definition
(gnu services desktop)
;;(gnu services dns) ;;for dnsmasq
(srfi srfi-1) ;;for remove function
(gnu services networking) ;;for remove ntp
(gnu services avahi) ;;for remove avahi
(gnu services xorg)
;;(gnu services databases);;for postgres
(gnu packages admin) ;;for wpa_supplicant
)
(use-service-modules desktop)
(use-package-modules certs gnome)
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device "/dev/sda1") (mount-point "/") (type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sda2"))
(users (cons* (user-account (name "bob") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/bob"))
(user-account (name "alice") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/aice"))
(user-account (name "mom") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/mom"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
wpa-supplicant
isc-dhcp
%base-packages))
(services (cons*
;;(service postgresql-service-type)
(xfce-desktop-service)
(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))
%desktop-services
(slim-service-type config =>
(slim-configuration
(inherit config)
(startx
(xorg-start-command
#:configuration-file
(xorg-configuration-file
#:extra-config
'(
"Section \"InputClass\"
Identifier \"touchpad-all\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection"
))))))
) ;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 desktop-services
));;end of services
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-10 14:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <LYMBSEO--3-1@tutanota.com-LYMBa4I----1>
2019-02-10 12:13 ` Touchpad tap again znavko
2019-02-10 14:06 ` Pierre Neidhardt
2019-02-10 11:36 znavko
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.