Change default orientation of xrandr-panelapp.sh.
authorChris Lord <chris@openedhand.com>
Wed, 15 Sep 2004 23:12:11 +0000 (23:12 +0000)
committerChris Lord <chris@openedhand.com>
Wed, 15 Sep 2004 23:12:11 +0000 (23:12 +0000)
BKrev: 4148cc4bdDLaTRUrlGVEf4dvPtwBSA

matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh

index e69de29..906e39e 100644 (file)
@@ -0,0 +1,9 @@
+#!/bin/sh
+if [ -n "$(xrandr | grep rotation | grep right)" ]
+then 
+xrandr -o normal
+xmodmap /etc/X11/xmodmap-portrait
+else 
+xrandr -o right
+xmodmap /etc/X11/xmodmap-right
+fi