Move rule to ignore eventlircd devices in xorg to own xorg.conf.d snippet

This commit is contained in:
Alexander Grothe 2018-01-24 10:53:05 +01:00
parent b43181b9cc
commit d3ca791a75
3 changed files with 27 additions and 0 deletions

View File

@ -1790,6 +1790,11 @@ first_run: False
# NOTE: write-x11-keyboard-config is in the xlogin package # NOTE: write-x11-keyboard-config is in the xlogin package
# Ubuntu's systemd is patched, so it does not create the file automatically # Ubuntu's systemd is patched, so it does not create the file automatically
- name: add snippet to ignore eventlircd devices in xorg
template:
src: templates/xorg-ignore-eventlircd.conf.j2
dest: /etc/X11/xorg.conf.d/40-ignore-eventlircd.conf
- name: apt | install desktop programs - name: apt | install desktop programs
apt: apt:
name: '{{ item }}' name: '{{ item }}'
@ -2124,6 +2129,16 @@ Wants=x@vt7.service
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
exec openbox-session exec openbox-session
#+END_SRC #+END_SRC
***** xorg.conf snippets
#+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/xorg-ignore-eventlircd.conf.j2
{{ ansible_managed | comment }}
Section "InputClass"
Identifier "exclude eventlircd devices"
MatchTag "eventlircd"
Option "Ignore" "True"
EndSection
#+END_SRC
***** xorg.conf ***** xorg.conf
#+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/xorg-verbose.conf.j2 #+BEGIN_SRC conf :tangle roles/yavdr-xorg/templates/xorg-verbose.conf.j2
Section "Device" Section "Device"

View File

@ -88,6 +88,11 @@
# NOTE: write-x11-keyboard-config is in the xlogin package # NOTE: write-x11-keyboard-config is in the xlogin package
# Ubuntu's systemd is patched, so it does not create the file automatically # Ubuntu's systemd is patched, so it does not create the file automatically
- name: add snippet to ignore eventlircd devices in xorg
template:
src: templates/xorg-ignore-eventlircd.conf.j2
dest: /etc/X11/xorg.conf.d/40-ignore-eventlircd.conf
- name: apt | install desktop programs - name: apt | install desktop programs
apt: apt:
name: '{{ item }}' name: '{{ item }}'

View File

@ -0,0 +1,7 @@
{{ ansible_managed | comment }}
Section "InputClass"
Identifier "exclude eventlircd devices"
MatchTag "eventlircd"
Option "Ignore" "True"
EndSection