From 10f2511fd64e2a9e4acb6ab355eebecf3e82ac0f Mon Sep 17 00:00:00 2001 From: Jake Date: Sun, 4 Mar 2018 12:31:51 +0000 Subject: [PATCH] Install touchpad configuration --- modules/config/files/touchpad.conf | 10 ++++++++++ modules/config/manifests/init.pp | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 modules/config/files/touchpad.conf diff --git a/modules/config/files/touchpad.conf b/modules/config/files/touchpad.conf new file mode 100644 index 0000000..80c3c95 --- /dev/null +++ b/modules/config/files/touchpad.conf @@ -0,0 +1,10 @@ +Section "InputClass" + Identifier "libinput touchpad catchall" + Driver "libinput" + MatchIsTouchpad "on" + MatchDevicePath "/dev/input/event*" + Option "ClickMethod" "clickfinger" + Option "NaturalScrolling" "false" + Option "AccelProfile" "flat" + Option "DisableWhileTyping" "true" +EndSection diff --git a/modules/config/manifests/init.pp b/modules/config/manifests/init.pp index 412b56d..c900d1a 100644 --- a/modules/config/manifests/init.pp +++ b/modules/config/manifests/init.pp @@ -62,6 +62,13 @@ class config { source => 'puppet:///modules/config/rofi.conf' } + file { 'Touchpad configuration': + ensure => file, + mode => '0644', + path => '/usr/share/X11/xorg.conf.d/30-touchpad.conf', + source => 'puppet:///modules/config/touchpad.conf' + } + service { 'lightdm': enable => false }