aboutsummaryrefslogtreecommitdiff
path: root/recipes-xfce/xfce-pointers
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-xfce/xfce-pointers')
-rw-r--r--recipes-xfce/xfce-pointers/de10-nano-xfce-pointers.bb32
-rw-r--r--recipes-xfce/xfce-pointers/files/pointers.xml13
2 files changed, 45 insertions, 0 deletions
diff --git a/recipes-xfce/xfce-pointers/de10-nano-xfce-pointers.bb b/recipes-xfce/xfce-pointers/de10-nano-xfce-pointers.bb
new file mode 100644
index 0000000..c22d949
--- /dev/null
+++ b/recipes-xfce/xfce-pointers/de10-nano-xfce-pointers.bb
@@ -0,0 +1,32 @@
+SUMMARY = "DE10-Nano XFCE Pointers config"
+DESCRIPTION = "Disable ADXL accelerometer as mouse input"
+AUTHOR = "Dalon Westergreen <dwesterg@gmail.com>"
+SECTION = "DE10-Nano"
+
+PR = "r0"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PV = "1.0${PR}"
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI = "file://pointers.xml \
+ "
+
+do_install() {
+ install -d ${D}${sysconfdir}/skel/
+ install -d ${D}${sysconfdir}/skel/.config/xfce4
+ install -d ${D}${sysconfdir}/skel/.config/xfce4/xfconf
+ install -d ${D}${sysconfdir}/skel/.config/xfce4/xfconf/xfce-perchannel-xml
+ install -m 0644 ${WORKDIR}/pointers.xml ${D}${sysconfdir}/skel/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml
+
+ install -d ${D}/home/root/.config/xfce4/xfconf/xfce-perchannel-xml
+ install -m 0644 ${WORKDIR}/pointers.xml ${D}/home/root/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml
+}
+
+FILES_${PN} = "\
+ ${sysconfdir}/skel/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml \
+ /home/root/.config/xfce4/xfconf/xfce-perchannel-xml/pointers.xml \
+ "
diff --git a/recipes-xfce/xfce-pointers/files/pointers.xml b/recipes-xfce/xfce-pointers/files/pointers.xml
new file mode 100644
index 0000000..10e9ae2
--- /dev/null
+++ b/recipes-xfce/xfce-pointers/files/pointers.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<channel name="pointers" version="1.0">
+ <property name="ADXL34x_accelerometer" type="empty">
+ <property name="Properties" type="empty">
+ <property name="Device_Enabled" type="int" value="0"/>
+ </property>
+ <property name="RightHanded" type="bool" value="true"/>
+ <property name="ReverseScrolling" type="bool" value="false"/>
+ <property name="Threshold" type="int" value="4"/>
+ <property name="Acceleration" type="double" value="2.000000"/>
+ </property>
+</channel>