[Ubuntu-BR] [Duvida] KDE e o atalho FN + F8

Welson de Avelar Soares Filho wfilho em ice.ufjf.br
Sexta Maio 7 17:45:31 UTC 2010


Bom, em cima do que tem nesse link aí, eu vos pergunto: como passar
parâmetro para o script ?

================================
#!/bin/bash
if [ PARAMETRO = "LCD" ]
then
        xrandr --output VGA --off
        xrandr --output LVDS --auto
elif [ PARAMETRO = "VGA" ]
then
        xrandr --output LVDS --off
        xrandr --output VGA --auto
elif [ PARAMETRO = "Both" ]
then
        xrandr --output VGA --auto
        xrandr --output LVDS --mode 1024x768
fi
================================

No meu caso, eu gostaria que este "PARAMETRO" fosse digitado por mim quando
executar o script, p. ex.:

./dual_monitor LCD
ou
./dual_monitor Both

Sacaram? Como faço isso?

Valew...o/

Em 7 de maio de 2010 09:54, Welson de Avelar Soares Filho escreveu:

> Para Gnome encontrei isso aqui. É bem legal.
> <http://www.kelvinism.com/tech-blog/zenity-gui-shell-script/>
>
> Mas continuo tentando encontrar algo para KDE/Qt.
>
> Valew... o/
>

-- 
Graduando em Ciência da Computação - U.F.J.F.

Lattes: <http://lattes.cnpq.br/0220648760037625>



More information about the ubuntu-br mailing list