aboutsummaryrefslogtreecommitdiffstats
path: root/packages/matchbox-panel-hacks
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-01 20:01:47 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-01 20:01:47 +0000
commitaf7ad30b51ec8deb28e90df737c099a9f64a2ad5 (patch)
treede9da5b18d410c805845b8c73d56bc1318dd94a6 /packages/matchbox-panel-hacks
parentbc5e0f85b578dfcf823c614f50df2d47a1bfade7 (diff)
downloadopenembedded-af7ad30b51ec8deb28e90df737c099a9f64a2ad5.tar.gz
matchbox-panel-hacks: patch xrandr-panel-app.sh to (hopefully) work with xrandr 1.3. should close #2685
Diffstat (limited to 'packages/matchbox-panel-hacks')
-rwxr-xr-xpackages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh11
-rw-r--r--packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb2
2 files changed, 6 insertions, 7 deletions
diff --git a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh
index d17c805ffc..fbf88d6d08 100755
--- a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh
+++ b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh
@@ -1,9 +1,8 @@
#!/bin/sh
-if [ -n "$(xrandr | grep rotation | grep left)" ]
-then
-xrandr -o normal
-xmodmap /etc/X11/xmodmap-portrait
+if [ -n "$(xrandr | grep default | grep 'left\ (')" ] ; then
+ xrandr -o normal
+ xmodmap /etc/X11/xmodmap-portrait
else
-xrandr -o left
-xmodmap /etc/X11/xmodmap-left
+ xrandr -o left
+ xmodmap /etc/X11/xmodmap-left
fi
diff --git a/packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb b/packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb
index f5c1209255..2fd7926707 100644
--- a/packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb
+++ b/packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb
@@ -5,7 +5,7 @@ PRIORITY = "optional"
DEPENDS = "matchbox xmodmap"
-PR = "r6"
+PR = "r7"
SRC_URI = "file://xrandr-panelapp.sh \
file://xrandr-panelapp.desktop \