View Single Post
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#46
Originally Posted by nicolai View Post
Hi moudy91,
create a shellscript /home/user/change_brightness.sh
Code:
#!/bin/sh
B=$(gconftool-2 -g /system/osso/dsm/display/display_brightness)
if [ $B == 1 ]; then
  gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5
fi
if [ $B == 5 ]; then
  gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 1
fi
Create a .desktop file (/usr/share/applications/hildon/change_brightness.desktop)
Code:
[Desktop Entry]
Version=1.0.0	
Encoding=UTF-8
Name=Brightness
Exec=sh /home/user/change_brightness.sh
Icon=general_brightness
Type=Application
X-App-Loading-Image=none
Now you can add a shortcut for this "Brightness-App" on you desktop.
hi thank you for your reply but it didnt work, i saw a new desktop with the icon and when i press it nothing happens, i did step by step what you told me but am sure nothing happens