Skip to content

Instantly share code, notes, and snippets.

@castilma
Created December 16, 2017 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castilma/3f5f24a79fd97c6c765db35cdc36b00d to your computer and use it in GitHub Desktop.
Save castilma/3f5f24a79fd97c6c765db35cdc36b00d to your computer and use it in GitHub Desktop.
add dir to etc
(define my-x-conf
(file-union "X11"
`(("xorg.conf.d" ,(file-union "xorg.conf.d"
`(("52-rat5-quirk.conf" ,(plain-file "rat5-quirk"
"Section \"InputClass\"
Identifier \"Saitek Cyborg R.A.T.5 Mouse\"
MatchIsPointer \"on\"
MatchProduct \"Saitek Cyborg R.A.T.5 Mouse\"
MatchVendor \"Saitek|SAITEK\"
MatchDevicePath \"/dev/input/event*\"
Option \"ButtonMapping\" \"1 2 3 4 5 6 7 2 9 4 5 12 0 0 0\"
Option \"ZAxisMapping\" \"10 11\"
# Option \"AutoReleaseButtons\" \"12 13 14 15\"
EndSection
"))))))))
; ...
(simple-service 'X11-conf etc-service-type
`(("X11" ,my-x-conf)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment