From af7ad30b51ec8deb28e90df737c099a9f64a2ad5 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 1 Aug 2007 20:01:47 +0000 Subject: matchbox-panel-hacks: patch xrandr-panel-app.sh to (hopefully) work with xrandr 1.3. should close #2685 --- .../matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh | 11 +++++------ packages/matchbox-panel-hacks/matchbox-panel-hacks_0.3-1.bb | 2 +- 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 \ -- cgit v1.2.3