From 9ffba64036dc31a96f00aae6647fcf2f612346c8 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Fri, 18 Oct 2013 02:56:51 +0200 Subject: [PATCH] op_lcdsettings: Added possibility to enable TV Out on startup. Renamed to "Video Settings", as most settings are not LCD specific anymore --- .../pandora-scripts/op_lcdsettings.desktop | 4 ++-- .../pandora-scripts/op_lcdsettings.pnd | Bin 12208 -> 12212 bytes .../pandora-scripts/op_lcdsettings.sh | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop b/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop index 5e22175..ea3e2c2 100644 --- a/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop +++ b/recipes/pandora-system/pandora-scripts/op_lcdsettings.desktop @@ -1,6 +1,6 @@ [Desktop Entry] -Name=LCD Settings -Comment=Manage LCD Gamma and Brightness. +Name=Video Settings +Comment=Manage Pandora Video Settings StartupNotify=false Exec=sudo /usr/pandora/scripts/op_lcdsettings.sh Icon=package_graphics diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd b/recipes/pandora-system/pandora-scripts/op_lcdsettings.pnd index 3b2772ef362b8fe7eeda82e623bdb4c69bc2f61e..7f518665c2dae3dd5e0b3eb6b6d1e27bb7587b99 100644 GIT binary patch delta 34 lcmdlGza@UdUjf#z%#_spNrD;>#%66n8>Y<}!X7e=TmbBT3vB=Z delta 31 kcmdlIzaf6ZUjb$xXP3!Lf*K%tv%a7W6C>~DY+(->0Ir7#E&u=k diff --git a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh index 58cf5aa..f915cc5 100644 --- a/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh +++ b/recipes/pandora-system/pandora-scripts/op_lcdsettings.sh @@ -1,11 +1,11 @@ #!/bin/bash # Released under the GPL -# LCD-Settings, v1.1, written by Michael Mrozek aka EvilDragon 2010. Brightness-Settings-Part written by vimacs. +# Video-Settings, v1.2, 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. . /usr/pandora/scripts/op_paths.sh -while mainsel=$(zenity --title="LCD-Settings" --width="300" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the LCD-Settings-Dialogue.\n\nWhat do you want to do?\n" "bright" "Change LCD Brightness" "gammasimple" "Manage LCD Gamma (simple)" "gamma" "Manage LCD Gamma (Advanced)" "filter" "Select current video filter" "filterdef" "Select default video filter" "sblank" "Enable/disable screen blanking" "rightclickmode" "Select Right-Click-Mode for touchscreen" --ok-label="Change Setting" --cancel-label="Exit"); do +while mainsel=$(zenity --title="Video Settings" --width="300" --height="370" --list --column "id" --column "Please select" --hide-column=1 --text="Welcome to the Video Settings-Dialogue.\n\nWhat do you want to do?\n" "bright" "Change LCD Brightness" "gammasimple" "Manage Gamma (simple)" "gamma" "Manage Gamma (Advanced)" "filter" "Select current video filter" "filterdef" "Select default video filter" "sblank" "Enable/disable screen blanking" "rightclickmode" "Select Right-Click-Mode for touchscreen" "tvout" "Enable/disable TV Out on Startup" --ok-label="Change Setting" --cancel-label="Exit"); do case $mainsel in @@ -118,6 +118,17 @@ case $mainsel in 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;; + + "tvout") + if zenity --question --title="TV Out on startup" --text="Do you want to enable the TV Output on startup?" --ok-label="Enable TV Out" --cancel-label="Disable TV Out"; then + touch /etc/pandora/conf/tvout.state + zenity --info --title="TV Out" --text "TV Out will be switched on with the last saved settings on bootup." --timeout 6 + else + if [ -f /etc/pandora/conf/tvout.state ]; then + rm /etc/pandora/conf/tvout.state + fi + zenity --info --title="TV Out" --text "TV Out will not be switched on on bootup." --timeout 6 + fi;; esac done -- 2.39.2