summaryrefslogtreecommitdiff
path: root/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1
diff options
context:
space:
mode:
Diffstat (limited to 'packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1')
-rw-r--r--packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/.mtn2git_empty0
-rw-r--r--packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.desktop7
-rwxr-xr-x[-rw-r--r--]packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.sh9
-rw-r--r--packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr.pngbin0 -> 534 bytes
4 files changed, 16 insertions, 0 deletions
diff --git a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/.mtn2git_empty b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/.mtn2git_empty
diff --git a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.desktop b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.desktop
index e69de29bb2..512e3771e4 100644
--- a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.desktop
+++ b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr-panelapp.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Screen Rotator
+Comment=Panel based Rotation tool.
+Exec=mb-applet-launcher -na -l --title "Screen Rotator" /usr/share/pixmaps/xrandr.png xrandr-panelapp.sh
+Type=PanelApp
+Icon=xrandr.png
+Categories=Panel;Utility;MB
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 e69de29bb2..491db4ca38 100644..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
@@ -0,0 +1,9 @@
+#!/bin/sh
+if [ -n "$(xrandr | grep rotation | grep left)" ]
+then
+xrandr -o normal
+xmodmap /etc/X11/xmodmap-portrait
+else
+xrandr -o left
+xmodmap /etc/X11/xmodmap-right
+fi
diff --git a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr.png b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr.png
index e69de29bb2..e1f529022d 100644
--- a/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr.png
+++ b/packages/matchbox-panel-hacks/matchbox-panel-hacks-0.3-1/xrandr.png
Binary files differ