summaryrefslogtreecommitdiff
path: root/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh
blob: 906e39e6133ffd0c836ec5fabe09ded6022ef422 (plain)
1
2
3
4
5
6
7
8
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