urjaman
"I Know. We're going for a ride."
Ok. so i usually go with Xfce-dusk, but i really wont cut it in the sunlight, etc. Luckily it has the acceptable bright version called Xfce-dawn. Here we go with files (which you will read and understand and atleast replace my username with yours, ok?):
/usr/bin/dusk.sh
	
	
	
		
/usr/bin/dawn.sh is identical, except that the theme name is Xfce-dawn (i wanted these as command line shortcuts, too)
Modified /usr/pandora/scripts/op_bright_up.sh:
	
		
Modified /usr/pandora/scripts/op_bright_down.sh:
	
		
				
			/usr/bin/dusk.sh
		Code:
	
	#!/bin/sh
export DISPLAY=":0.0"
export XAUTHORITY='/home/urjaman/.Xauthority'
PID=$(pidof xfce4-panel)
export $(cat /proc/$PID/environ | xargs -0 -n1 echo | grep ^DBUS_SESSION_BUS_ADDRESS=)
xfconf-query -c xsettings -p "/Net/ThemeName" -s Xfce-duskModified /usr/pandora/scripts/op_bright_up.sh:
		Code:
	
	#!/bin/bash
cur=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness);
if [ "$cur" == 54 ]; then
	su urjaman -c /usr/bin/dawn.sh
fi
echo $(($cur+10)) > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightnessModified /usr/pandora/scripts/op_bright_down.sh:
		Code:
	
	#!/bin/bash
cur=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness);
if [ $cur -lt 10 ]; then
	su urjaman -c /usr/bin/dusk.sh
fi
echo $(($cur-10)) > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness 
	
 
 
		 
 
		 
 
		 
 
		 
 
		