summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxde-common
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-lxde/lxde-common')
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/autostart.patch8
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/consistent_defconfig_dirs.patch12
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/defaults.list19
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/desktop.conf30
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/hdmiaudio.sh4
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-neutral.pngbin0 -> 1996 bytes
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t20.pngbin0 -> 5488 bytes
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t30.pngbin0 -> 5521 bytes
-rw-r--r--recipes-lxde/lxde-common/lxde-common-0.5.5/wallpaper.patch16
-rw-r--r--recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend30
10 files changed, 119 insertions, 0 deletions
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/autostart.patch b/recipes-lxde/lxde-common/lxde-common-0.5.5/autostart.patch
new file mode 100644
index 0000000..c7df506
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/autostart.patch
@@ -0,0 +1,8 @@
+--- lxde-common-0.5.5/autostart.orig 2011-07-29 16:04:03.000000000 +0200
++++ lxde-common-0.5.5/autostart 2012-03-12 16:41:00.000000000 +0100
+@@ -1,3 +1,5 @@
+ @lxpanel --profile LXDE
+ @pcmanfm --desktop --profile LXDE
+ @xscreensaver -no-splash
++xrandr 2>&1 > /dev/null
++hdmiaudio.sh
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/consistent_defconfig_dirs.patch b/recipes-lxde/lxde-common/lxde-common-0.5.5/consistent_defconfig_dirs.patch
new file mode 100644
index 0000000..1eff17b
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/consistent_defconfig_dirs.patch
@@ -0,0 +1,12 @@
+diff -urNdb lxde-common-0.5.5.orig//startlxde.in lxde-common-0.5.5//startlxde.in
+--- lxde-common-0.5.5.orig//startlxde.in 2011-12-17 22:39:41.000000000 +0100
++++ lxde-common-0.5.5//startlxde.in 2011-12-17 22:40:22.000000000 +0100
+@@ -8,7 +8,7 @@
+ PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm/LXDE"
+ if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then
+ mkdir -p "$PCMANFM_CONF_DIR"
+- cp @prefix@/share/lxde/pcmanfm/pcmanfm.conf "$PCMANFM_CONF_DIR/pcmanfm.conf"
++ cp /etc/xdg/pcmanfm/LXDE/pcmanfm.conf "$PCMANFM_CONF_DIR/pcmanfm.conf"
+ fi
+
+ # Ensure the existance of openbox config file
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/defaults.list b/recipes-lxde/lxde-common/lxde-common-0.5.5/defaults.list
new file mode 100644
index 0000000..c683923
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/defaults.list
@@ -0,0 +1,19 @@
+[Default Applications]
+x-scheme-handler/http=firefox.desktop
+text/plain=leafpad.desktop
+image/bmp=gpicview.desktop
+image/gif=gpicview.desktop
+image/jpeg=gpicview.desktop
+image/jpg=gpicview.desktop
+image/png=gpicview.desktop
+image/tiff=gpicview.desktop
+image/x-bmp=gpicview.desktop
+image/x-pcx=gpicview.desktop
+image/x-tga=gpicview.desktop
+image/x-portable-pixmap=gpicview.desktop
+image/x-portable-bitmap=gpicview.desktop
+image/x-targa=gpicview.desktop
+image/x-portable-greymap=gpicview.desktop
+application/pcx=gpicview.desktop
+image/svg+xml=gpicview.desktop
+image/svg-xml=gpicview.desktop
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/desktop.conf b/recipes-lxde/lxde-common/lxde-common-0.5.5/desktop.conf
new file mode 100644
index 0000000..7e9862c
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/desktop.conf
@@ -0,0 +1,30 @@
+[Session]
+window_manager=openbox-lxde
+
+[GTK]
+sNet/ThemeName=Clearlooks
+sNet/IconThemeName=nuoveXT2
+sGtk/FontName=Sans 10
+iGtk/ToolbarStyle=3
+iGtk/ButtonImages=1
+iGtk/MenuImages=1
+iGtk/CursorThemeSize=18
+iXft/Antialias=1
+
+sGtk/ColorScheme=
+sGtk/CursorThemeName=whiteglass
+iGtk/ToolbarIconSize=3
+iNet/EnableEventSounds=1
+iNet/EnableInputFeedbackSounds=1
+iXft/Hinting=1
+sXft/HintStyle=hintfull
+sXft/RGBA=rgb
+
+[Mouse]
+AccFactor=20
+AccThreshold=10
+LeftHanded=0
+
+[Keyboard]
+Delay=500
+Interval=30
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/hdmiaudio.sh b/recipes-lxde/lxde-common/lxde-common-0.5.5/hdmiaudio.sh
new file mode 100644
index 0000000..e1c1760
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/hdmiaudio.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+#LXDM starts X in such a way that hdmi audio is not functional. Changing the Virtual Console corrects this. Is called by lxsessions autostart
+chvt 1 2>&1 > /dev/null
+chvt 7 2>&1 > /dev/null
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-neutral.png b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-neutral.png
new file mode 100644
index 0000000..2775aa4
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-neutral.png
Binary files differ
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t20.png b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t20.png
new file mode 100644
index 0000000..907b7f0
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t20.png
Binary files differ
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t30.png b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t30.png
new file mode 100644
index 0000000..3e1e9bc
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/toradex-t30.png
Binary files differ
diff --git a/recipes-lxde/lxde-common/lxde-common-0.5.5/wallpaper.patch b/recipes-lxde/lxde-common/lxde-common-0.5.5/wallpaper.patch
new file mode 100644
index 0000000..37823ed
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common-0.5.5/wallpaper.patch
@@ -0,0 +1,16 @@
+diff -Naur lxde-common-0.5.5.orig/pcmanfm/pcmanfm.conf.in lxde-common-0.5.5/pcmanfm/pcmanfm.conf.in
+--- lxde-common-0.5.5.orig/pcmanfm/pcmanfm.conf.in 2012-01-04 12:57:31.904011602 +0100
++++ lxde-common-0.5.5/pcmanfm/pcmanfm.conf.in 2012-01-04 12:58:35.854063347 +0100
+@@ -3,9 +3,9 @@
+ su_cmd=xdg-su -c '%s'
+
+ [desktop]
+-wallpaper_mode=1
+-wallpaper=@prefix@/share/lxde/wallpapers/lxde_blue.jpg
+-desktop_bg=#000000
++wallpaper_mode=3
++wallpaper=@prefix@/share/lxde/wallpapers/toradex.png
++desktop_bg=#0071ac
+ desktop_fg=#ffffff
+ desktop_shadow=#000000
+
diff --git a/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend
new file mode 100644
index 0000000..d4b5b35
--- /dev/null
+++ b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend
@@ -0,0 +1,30 @@
+PRINC = "1"
+WALLPAPER-MACHINE = "toradex-neutral.png"
+WALLPAPER-MACHINE_colibri-t20 = "toradex-t20.png"
+WALLPAPER-MACHINE_colibri-t30 = "toradex-t30.png"
+
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
+
+SRC_URI += " \
+ file://autostart.patch \
+ file://consistent_defconfig_dirs.patch \
+ file://toradex-neutral.png \
+ file://${WALLPAPER-MACHINE} \
+ file://wallpaper.patch \
+ file://desktop.conf \
+ file://defaults.list \
+ file://hdmiaudio.sh \
+"
+
+do_install_append () {
+ install -m 0755 -d ${D}/${datadir}/lxde/wallpapers
+ install -m 0644 ${WORKDIR}/toradex-*.png ${D}/${datadir}/lxde/wallpapers/
+ ln -sf ${WALLPAPER-MACHINE} ${D}/${datadir}/lxde/wallpapers/toradex.png
+ rm ${D}/etc/xdg/lxsession/LXDE/desktop.conf
+ install -m 0644 ${WORKDIR}/desktop.conf ${D}/etc/xdg/lxsession/LXDE/
+ install -m 0755 -d ${D}/${datadir}/applications/
+ install -m 0644 ${WORKDIR}/defaults.list ${D}/${datadir}/applications/
+ install -m 0755 -d ${D}/${bindir}
+ install -m 0755 ${WORKDIR}/hdmiaudio.sh ${D}/${bindir}/
+}