I own a Macbook, and finally decided to quit the "advanced" distro's which the only thing i did was keep fixing small details, and chose Fedora mainly because It's elegant. But oh well, here goes the deal:
I have made a script to control the backlight keyboard, increasing or decreasing the light intensity. The scripts works flawlessly. As the script writes to a file in /sys/ it needed root permissions, so i made a line in sudoers for it to be executed using sudo wthout promting for a password. This also works.
The problem is I want to keybind it to the Mac Keys, which are named XF86KbdBrightnessUp & Down.
I have used gnome-keybinding-properties and no luck.
I have also tried the gconf-editor metacity approach, if the name of the keys do not change using gconf. (i set the commands using the names XF86KbdBrightnessUP & down. and still no luck.
This has probably been anwsered, but It's a hard search since It's very specific, so here goes the new thread.
Thank you all.
This is the script BTW just for the search engine index record.
Code:
#!/usr/bin/perl
#use warnings;
my $salto = 15;
open(ARCHIVO, "/sys/class/leds/smc::kbd_backlight/brightness") || die("No se encontro el Archivo de Brightness\n");
@intensidad = <ARCHIVO>;
close(ARCHIVO);
chomp(@intensidad[0]);
my $var = @intensidad[0];
my $mas = $var + $salto;
my $menos = $var - $salto;
if($ARGV[0] eq "up" && $mas <= 255){
system("echo $mas > /sys/class/leds/smc::kbd_backlight/brightness");
}elsif($ARGV[0] eq "down" && $menos >= 0){
system("echo $menos > /sys/class/leds/smc::kbd_backlight/brightness");
}