juego de teclas o creaccion de script

Angel J. Chica angeljchica en yahoo.es
Vie Nov 9 23:36:14 GMT 2007


Jonathan De La Torre escribió:
> On Nov 9, 2007 6:45 PM, Jonathan De La Torre <klifffor en gmail.com> wrote:
> 
>> hola lista.
>>
>> sabeis como puedo asignar un comando de terminal a un juego de teclas
>>
>> o como crear un script para vajar el nivel del brillo de la pantalla del
>> portatil
>>
>> Brillo del monitor
>>
>> 1.- ******    smartdimmer -s 18
>> 2.- *****      smartdimmer -s 15
>> 3.- ****       smartdimmer -s 11
>> 4.- ***         smartdimmer -s 8
>> 5.- **           smartdimmer -s 4
>> 6.- *            smartdimmer -s 1
>>
>>
>> saludos
>> --
>> klifffor
> 
> 
> siguiendo un ejemplo que habia en internet e hecho yo este script cuando lo
> ejecuto se abre pero no funciona ninguna funcion ni siquiera la de exit
> 
> ######################
> #!/bin/bash
> echo "Selecciona el nivel de brillo"
> echo " 1.*****"
> echo " 2.****"
> echo " 3.***"
> echo " 4.**"
> echo " 5.*"
> echo " 6.Salir"
> 
> #se elige una de las opciones
> 
> echo "Opcion:"
> read opccion
> 
> #se lee la opcion elegida
> 
> #se ejecuta segun la opcion elegida. Destacar nombre de la imagen
> 
> case $opccion in
> if ["$opccion"= "1"]; then smartdimmer -s 18
> 
> if ["$opccion"= "2"]; then smartdimmer -s 15
> 
> if ["$opccion"= "3"]; then smartdimmer -s 12
> 
> if ["$opccion"= "4"]; then smartdimmer -s 9
> 
> if ["$opccion"= "5"]; then smartdimmer -s 6
> 
> if ["$opccion"= "1"]; then  exit
> 
> #FIN
> #########################
> 
> 

En mi vaío FE31B lo hice así:
http://mundogeek.net/archivos/2005/05/28/vincular-una-combinacion-de-teclas-a-un-comando-en-gnome/

Salu2.


-- 
Ángel J. Chica
angeljchica en BORRAESTOyahoo.es

Usando Thunderbird en Debian GNU/Linux.
Linux Registered User #399638




Más información sobre la lista de distribución ubuntu-es