Como tornar a janela de exibição openbox apenas em determinada área

3

Eu tenho uma tela com uma resolução nativa de 1024X600. Eu configurei para 1024X724, porque algumas janelas não podem ser exibidas na resolução nativa. Eu tenho que usar o mouse para fazer o pan. Mas para a maioria das janelas, a resolução nativa é suficiente.

1 Existe uma maneira de definir todas as janelas exibidas na região superior de 1024X600 do display?

2 Para alguns aplicativos, desejo especificar a posição e o tamanho exatos. Eu tentei isso para o emacs, tanto a posição quanto o tamanho não funcionam. Alguma idéia?

<application name="emacs24" class="Emacs" type="normal">
<position force="yes">
    <x>0</x>
    <y>0</y>
</position>
    <height>600</height>
    <width>1024</width>
<decor>no</decor>
<maximized>no</maximized>
</application>

A saída do obxprop é:

_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_CLASS(UTF8_STRING) = "Emacs"
_OB_APP_NAME(UTF8_STRING) = "emacs24"
    
por godblessfq 29.09.2015 / 23:50

1 resposta

1

Tente

<application name="emacs*" class="Emacs*" type="normal">
    <position force="yes">
        <x>0</x>
        <y>0</y>
    </position>
    <size>
        <height>600</height>
        <width>1024</width>
    </size>
    <decor>no</decor>
    <maximized>no</maximized>
</application>

Os <height> e <width> precisam estar na tag <size> .

Da configuração de exemplo do Openbox

<position force="no">
  # the position is only used if both an x and y coordinate are provided
  # (and not set to 'default')
  # when force is "yes", then the window will be placed here even if it
  # says you want it placed elsewhere.  this is to override buggy
  # applications who refuse to behave
  <x>center</x>
  # a number like 50, or 'center' to center on screen. use a negative number
  # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  # the right edge (or bottom). use 'default' to specify using value
  # provided by the application, or chosen by openbox, instead.
  <y>200</y>
  <monitor>1</monitor>
  # specifies the monitor in a xinerama setup.
  # 1 is the first head, or 'mouse' for wherever the mouse is
</position>

<size>
  # the size to make the window.
  <width>20</width>
  # a number like 20, or 'default' to use the size given by the application.
  # you can use fractions such as 1/2 or percentages such as 75% in which
  # case the value is relative to the size of the monitor that the window
  # appears on.
  <height>30%</height>
</size>
    
por 03.10.2015 / 20:10