OpenBox - question: how to make it simplier to execute command as root
Hello,
Using OpenBox rc.xml I want to bind W++ & W+- keys for changes on lcd backlight:
W++: increase brightness
(pseudo bash: echo (some data += 1) > /sys/class/backlight/acpi_video0/brightness)
W+-: decrease brightness
(pseudo bash: echo (some data -= 1) > /sys/class/backlight/acpi_video0/brightness)
problem is that I have to execute it as a root and I know it is possible to run it using gksudo 'echo...', but it isn't nice to type my root password each time when I want to perform step of brightness change. Do You know if there is any nice solution for this situation.
Thanks in advance.
|