mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
initial macbook support
- create macbook role - move xf86-input-synaptics to thinkpad role - macbook role uses xf86-input-mtrack-git - i'm curious if mtrack-git works better than synaptics on thinkpad
This commit is contained in:
parent
a3d499a972
commit
06e8e2c1a2
8 changed files with 48 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
- include: synaptics.yml
|
||||
- include: tlp.yml
|
||||
|
||||
- name: Copy logind configuration file
|
||||
|
|
|
|||
21
roles/macbook/files/50-mtrack-git.conf
Normal file
21
roles/macbook/files/50-mtrack-git.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Section "InputClass"
|
||||
MatchIsTouchpad "on"
|
||||
Identifier "Touchpads"
|
||||
Driver "mtrack"
|
||||
Option "Sensitivity" "0.65"
|
||||
Option "IgnoreThumb" "true"
|
||||
Option "IgnorePalm" "true"
|
||||
Option "TapButton1" "1"
|
||||
Option "TapButton2" "3"
|
||||
Option "TapButton3" "2"
|
||||
Option "ClickFinger1" "1"
|
||||
Option "ClickFinger2" "3"
|
||||
Option "ClickFinger3" "2"
|
||||
Option "BottomEdge" "25"
|
||||
# natural scrolling
|
||||
Option "ScrollDownButton" "4"
|
||||
Option "ScrollUpButton" "5"
|
||||
Option "ScrollLeftButton" "7"
|
||||
Option "ScrollRightButton" "6"
|
||||
EndSection
|
||||
|
||||
4
roles/macbook/meta/main.yml
Normal file
4
roles/macbook/meta/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: base }
|
||||
- { role: laptop }
|
||||
2
roles/macbook/tasks/main.yml
Normal file
2
roles/macbook/tasks/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- include: mtrack-git.yml
|
||||
20
roles/macbook/tasks/mtrack-git.yml
Normal file
20
roles/macbook/tasks/mtrack-git.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: Copy mtrack-git configuration file
|
||||
copy: src=50-mtrack-git.conf dest=/etc/X11/xorg.conf.d/50-mtrack-git.conf
|
||||
|
||||
- name: Download xf86-input-mtrack-git
|
||||
command: cower -dq xf86-input-mtrack-git
|
||||
chdir=/home/{{ user.name }}/{{ aur.dir }}
|
||||
creates=/home/{{ user.name }}/{{ aur.dir }}/xf86-input-mtrack-git
|
||||
tags:
|
||||
- aur
|
||||
become: yes
|
||||
become_user: "{{ user.name }}"
|
||||
|
||||
- name: Build and install mtrack-git
|
||||
command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/xf86-input-mtrack-git"
|
||||
tags:
|
||||
- aur
|
||||
become: yes
|
||||
become_user: "{{ user.name }}"
|
||||
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- include: synaptics.yml
|
||||
- include: battery.yml
|
||||
#- include: fan.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue