diff options
author | Koen Kooi <koen@openembedded.org> | 2007-08-01 20:01:47 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-08-01 20:01:47 +0000 |
commit | af7ad30b51ec8deb28e90df737c099a9f64a2ad5 (patch) | |
tree | de9da5b18d410c805845b8c73d56bc1318dd94a6 /packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1 | |
parent | bc5e0f85b578dfcf823c614f50df2d47a1bfade7 (diff) |
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/matchbox-panel-hacks-0.3-1')
-rwxr-xr-x | packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh | 11 |
1 files changed, 5 insertions, 6 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 |