X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-scripts%2Fop_lcdsettings.sh;h=a30525dba48149f0bdc6faaf0df10fb2878d7153;hp=821400d067c91473feab14619c04e4e4c9b85a1f;hb=5ee2667499d0181759ece906ca01e3f23de35571;hpb=2e2bab953b2c9340e29b52d22b90e7a660ce625a diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh index 821400d..a30525d 100755 --- a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh +++ b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh @@ -3,7 +3,7 @@ # LCD-Settings, v1.0, written by Michael Mrozek aka EvilDragon 2010. Brightness-Settings-Part written by vimacs. # This scripts allows you to create, load and save Gamma-Settings and to change the LCD Brightness. -while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="180" --list --column "id" --column "Please select" --hide-column=1 --text="What do you want to do?" "bright" "Change LCD Brightness" "gamma" "Manage LCD Gamma"); do +while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="200" --list --column "id" --column "Please select" --hide-column=1 --text="What do you want to do?" "bright" "Change LCD Brightness" "gamma" "Manage LCD Gamma" "filter" "Select current video filter"); do case $mainsel in @@ -72,5 +72,12 @@ case $mainsel in echo $gamma > /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma fi fi;; + + "filter") + if selection=$(head -1 /etc/pandora/conf/dss_fir/* | sed 's:==> ::' | sed 's: <==::' | sed '/^$/d' | zenity --width=700 --height=200 --title="Videofilter" --hide-column=1 --list --column "filter" --column "Videofilter" --text "Please select a videofilter" ); then + videofilter=$(basename $selection) + sudo /usr/pandora/scripts/op_videofir.sh $videofilter + zenity --info --title="Videofilter applied" --text "The videofilter has been applied." --timeout 6 + fi;; esac done \ No newline at end of file