op_nubmode: New script that lets you change the nubmode.
authorMichael Mrozek <EvilDragon@openpandora.org>
Wed, 14 Apr 2010 00:16:26 +0000 (02:16 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Wed, 14 Apr 2010 00:16:26 +0000 (02:16 +0200)
recipes/pandora-system/pandora-scripts/op_nubmode.desktop [new file with mode: 0644]
recipes/pandora-system/pandora-scripts/op_nubmode.sh [new file with mode: 0755]

diff --git a/recipes/pandora-system/pandora-scripts/op_nubmode.desktop b/recipes/pandora-system/pandora-scripts/op_nubmode.desktop
new file mode 100644 (file)
index 0000000..c5b6ba2
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Set Nub mode
+Comment=You can set the nubs to use them as mouse, scrollwheel or stick.
diff --git a/recipes/pandora-system/pandora-scripts/op_nubmode.sh b/recipes/pandora-system/pandora-scripts/op_nubmode.sh
new file mode 100755 (executable)
index 0000000..071a3f3
--- /dev/null
@@ -0,0 +1,13 @@
+if nubl=$(zenity --height=250 --list --title="Select Nub-mode for the left nub" --text="Please select the modus for the left nub.\n\nNote: This can affect running programs.\nSome programs also may change the nub mode themselves."  --column "return" --hide-column=1 --column "Nub Mode" "mouse" "Use the nub as mouse" "scroll" "Use the nub for scrolling" "absolute" "Use the nub as joystick" "mbuttons" "Use the nub as mouse buttons (not implemented yet)") ; then
+echo $nubl > /proc/pandora/vsense66
+if nubr=$(zenity --height=250 --list --title="Select Nub-mode for the right nub" --text="Please select the modus for the right nub.\n\nNote: This can affect running programs.\nSome programs also may change the nub mode themselves."  --column "return" --hide-column=1 --column "Nub Mode" "mouse" "Use the nub as mouse" "scroll" "Use the nub for scrolling" "absolute" "Use the nub as joystick" "mbuttons" "Use the nub as mouse buttons (not implemented yet)") ; then
+echo $nubr > /proc/pandora/vsense67
\ No newline at end of file