Os Menus nas janelas

From Fluxbox-wiki

Jump to: navigation, search


Contents


Que menus nas janelas são esses?

É o menu que você vê quando você clica com o botão direito na barra de título. Por padrão tem as opções de encolher, maximizar, focalizar e etc

Preparações

Primeiro, informe o fluxbox de que você está querendo usar um menu de janelas que você mesmo vai fazer, abra o arquivo ~/.fluxbox/init e procure a linha:

 session.screen0.windowMenu:

Mude para:

 session.screen0.windowMenu: ~/.fluxbox/windowmenu

Recarregue a configuração do fluxbox e você deve estar pronto para começar a editar o menu.


Editando o menu

Configurar os menus das janelas é como configurar os menus da raiz, aquele que aparece quando você aperta com o botão direito no desktop, exceto que ele tem alguns menus especiais que o menu normal não tem.

O menu deve começar com [begin] e terminar com [end] . Os seguintes itens podem ser usados, perceba que é opcional, sem isso um padrão vai ser utilizado.


 [shade] (label)
  This option shades/unshades the window, only titlebar will be left visible.
  Same effect as double clicking on the title, pressing the shade button, using a keybind or maybe even scrolling             with the mousewheel.


  [close] (label)
  Closes the window. Just like pressing the X on the corner.


 [kill] (label)
 [killwindow] (label)
  Kills the window. Comes in handy if the program has crashed and wont close.


 [stick] (label)
  Toggles the window stickiness. When it is sticky, it is visible on all workspaces.


 [maximize] (label)
  Maximizes and restores the window.


 [iconify] (label)
  Minimizes (iconifies) the window.


 [raise] (label)
  Raises the window to an upper layer.


 [lower] (label)
  Lowers the window one layer.


 [sendto] (label)
  Shows the "Send To..." menu. Allows sending windows to other workspaces.


 [layer] (label)
  Shows the "Layer..." menu, allowind user to change the window's layer easily.


 [extramenus] (label)
  Shows the "Remember..." menu to remember window parameters through sessions.


Após editar esse menu, salve ele. E selecione reccaregar configuração (reload config) do fluxbox menu ou você não verá suas mudanças.

Exemplos

Esse deve fazer um menu parecido com o padrão:

  1. ~/.fluxbox/windowmenu - a 'custom' windowmenu
[begin]
 [shade] (Shade)
 [stick] (Stick)
 [maximize]
 [iconify] (Iconify)
 [raise]
 [lower]
 [sendto]
 [layer]
 [extramenus]
 [separator]
 [close] (Close)
[end]

Esse é um pouco diferente:

[begin]
 [exec] (terminal) {xterm}
 [maximize] (maximize)
 [iconify] (minimize)
 [submenu] (advanced)
   [layer] (layer)
   [extramenus] (remember)
   [sendto] (send to)
 [end]
 [separator]
 [close] (close)
[end]
Personal tools
Google Ads