From d94d62d01fcedb8eef83bf0aea45801130cb14bf Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Wed, 14 Apr 2010 02:16:26 +0200 Subject: [PATCH] op_nubmode: New script that lets you change the nubmode. --- .../pandora-scripts/op_nubmode.desktop | 9 +++++++++ .../pandora-system/pandora-scripts/op_nubmode.sh | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 recipes/pandora-system/pandora-scripts/op_nubmode.desktop create mode 100755 recipes/pandora-system/pandora-scripts/op_nubmode.sh diff --git a/recipes/pandora-system/pandora-scripts/op_nubmode.desktop b/recipes/pandora-system/pandora-scripts/op_nubmode.desktop new file mode 100644 index 0000000..c5b6ba2 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/op_nubmode.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Set Nub mode +Comment=You can set the nubs to use them as mouse, scrollwheel or stick. +StartupNotify=false +Exec=/usr/pandora/scripts/op_nubmode.sh +Icon=gnome-dev-mouse-optical +Terminal=false +Type=Application +Categories=Settings; diff --git a/recipes/pandora-system/pandora-scripts/op_nubmode.sh b/recipes/pandora-system/pandora-scripts/op_nubmode.sh new file mode 100755 index 0000000..071a3f3 --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/op_nubmode.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +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 + +fi + +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 + +fi \ No newline at end of file -- 2.39.2