View Single Post
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#43
hey guys can this be done on a desktop shortcut ?
Code:
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then
# add here switch on instructions
gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 2
echo "Level 2";
exit 1;
fi;
if [ "$QBW_CURRENT_RESULTS_TEXT" == "Level 2" ]; then
# add here switch off instructions
gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5
echo "Level 5";
exit 0;
else
# add here switch on instructions
gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 2
echo "Level 2";
exit 1;
fi;
and save it as .py am doing this because many qbw on my desktop and i want to make them less, so i can easily from the menu.
thank you