modified: testdata/scripts/op_lid.sh
modified: testdata/scripts/op_menu.sh
elif [ "$1" = "0" ]; then # lid was opend
maxbright=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/max_brightness)
oldbright=$(cat /tmp/oldbright)
- if [ $oldbright -ge 0 ] && [ $oldbright -le $maxbright ]; then
+ if [ $oldbright -ge 3 ] && [ $oldbright -le $maxbright ]; then
/usr/pandora/scripts/op_bright.sh $oldbright
else
/usr/pandora/scripts/op_bright.sh $maxbright
done
else
echo "starting appfinder"
- xfceuser=$(ps ua -C xfce4-session | grep /usr/bin/xfce4-session | tail -n1 | awk '{print $1}')
+ xfceuser=$(ps u -C xfce4-session | tail -n1 | awk '{print $1}')
su -c 'DISPLAY=:0.0 xfce4-appfinder' - $xfceuser
fi
else