Pergunta

Existe um programa X/Gnome padrão que exibirá a largura e profundidade X, Y em pixels de uma janela que eu selecionar?Algo semelhante à maneira como um xterm mostra a largura e a profundidade da janela (em linhas) conforme você a redimensiona.

Estou executando o Red Hat Enterprise Linux 4.4.

Obrigado!

Foi útil?

Solução

Sim, você está procurando o programa 'xwininfo'.Execute-o em outro terminal e clique na janela sobre a qual deseja informações e ele as fornecerá.

Espero que isto ajude!

Outras dicas

$ xwininfo 

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1200007 "xeyes"

  Absolute upper-left X:  1130
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 150
  Height: 100
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1130+0  -0+0  -0-924  +1130-924
  -geometry 150x100-0+0
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top