r2 - 08 Oct 2005 - 17:29:18 - IuriDinizYou are here: TWiki >  Personal Web  > XServerXorgXFree86

Trocar resulução do X.

Perguntar disponiveis

#!/bin/sh
xrandr

Trocar resolução

#!/bin/sh
xrandr -s 1024x760

Trocar refresh-rate

#!/bin/sh
xrandr -r 80

Inicialização do X

Arquivo $HOME/.xsession

  • Contém comandos executados quando chamado pelo *dm (como gdm, kdm, etc...)

Arquivo $HOME/.xsession

  • Contém comandos executados quando chamado pelo startx

Geralmente faz-se um link de uma para o outro

#!/bin/sh
ln -s $HOME/.xsession $HOME/.xinitrc

Exemplo do .xinitrc (chmod +x)

#!/bin/sh
# ligar o numlock
/usr/bin/numlockx on

# como estou no modo grafico usar outro editor
export EDITOR="/usr/bin/gedit"

# o ultimo comando deve deveria sempre ser um exec para trocar o processo
# iniciar Gnome
exec gnome-session

-- IuriDiniz - 13 Aug 2005

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback