- dsscurr=$(cat /etc/pandora/conf/dssgamma.state)
- while dssgamma=$(zenity --scale --text "Set Quick Gamma (Standard: 100)\n\nPress Ok to apply and Cancel to go back to the main menu." --min-value=0 --max-value=200 --value=$dsscurr --step 1); do
- dssgamma2=$(echo "scale=2;$dssgamma / 100" | bc)
- dsscurr=$dssgamma
- echo $dsscurr > /etc/pandora/conf/dssgamma.state
- sudo /usr/pandora/scripts/op_gamma.sh $dssgamma2
- done;;
+ dsscurr=$(cat /etc/pandora/conf/dssgamma.state)
+ while dssgamma=$(zenity --scale --text "Set Quick Gamma (Standard: 100)\n\nPress Ok to apply and Cancel to go back to the main menu." --min-value=0 --max-value=200 --value=$dsscurr --step 1); do
+ dssgamma2=$(echo "scale=2;$dssgamma / 100" | bc)
+ dsscurr=$dssgamma
+ echo $dsscurr > /etc/pandora/conf/dssgamma.state
+ sudo /usr/pandora/scripts/op_gamma.sh $dssgamma2
+ done;;
+
+ "rightclickmode")
+ user=$(cat /tmp/currentuser)
+ if zenity --question --title="Right-Click Mode" --text="Choose how you would like to do a right-click with the touchscreen: You can either use the click-and-hold-method to right click or to use ALT as modifier key." --ok-label="ALT as modifier" --cancel-label="Click-and-Hold"; then
+ echo 'mode = "1"' > /home/$user/Applications/Settings/libgtkstylus.conf
+ zenity --info --title="Right-Click" --text "To do a right-click with the stylus, press and hold the ALT button while clicking.\n\nYou need to restart X to enable this." --timeout 6
+ else
+ echo 'mode = "0"' > /home/$user/Applications/Settings/libgtkstylus.conf
+ zenity --info --title="Right-Click" --text "To do a right-click with the stylus, press and hold the stylus on the screen.\n\nYou need to restart X to enable this." --timeout 6
+ fi;;
+