summaryrefslogtreecommitdiff
path: root/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh')
-rwxr-xr-xpackages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh11
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