On Sat 04 Mar 2017 at 10:56:01 -0600, Matthew D. Fuller wrote:
>   But, they're weird.  Proof: they're on this list.

Proof accepted :-)

> - Similarly, some of the standard-like titlebar buttons for things
>   like maximize, and maybe a window menu.  Y'know you can do that?
>   See [1].  Of course, what you'd want in a window menu in practice
>   would differ from what you'd want in a root menu, so you probably
>   would want to make a special menu for it too.

In my config, I have a title bar menu (with a menu icon) with some
window actions, but I also attached a menu to right-clicking on the
resize icon. That menu is filled with lots of the move/resize commands.
Including it in the other menu would have made it much too long.
Even as it is it needs submenus.

I also make use of some m4 macros to adjust sizes to the size of the
screen I'm using. For instance, my workspacemanager window is 1/6 of the
width and height of the screen, automagically:

changequote([,])dnl  # m4 quoting interferes with shell escapes

define(IWIDTH, eval(WIDTH / 6))dnl
define(IHEIGHT, eval(HEIGHT / 6))dnl
WorkSpaceManagerGeometry        "IWIDTH[]x[]IHEIGHT[]+0-0" 3

and a bunch of key bindings and menu entries to zoom windows to fixed
regions of the screen, such as the 4 quadrants, or the various
combinations of 1/3-width and full-height:

define(THIRD, eval(WIDTH / 3))dnl
define(TWOTHIRD, eval(WIDTH - THIRD))dnl
define(WINHEIGHT, eval(HEIGHT - 23))dnl

Function "save-and-l1zoom"      { f.savegeometry f.moveresize 
"THIRD[]x[]WINHEIGHT[]+0+0" }
Function "save-and-l2zoom"      { f.savegeometry f.moveresize 
"THIRD[]x[]WINHEIGHT[]+[]THIRD[]+0" }
Function "save-and-l3zoom"      { f.savegeometry f.moveresize 
"THIRD[]x[]WINHEIGHT[]+[]TWOTHIRD[]+0" }

Function "save-and-l12zoom"     { f.savegeometry f.moveresize 
"TWOTHIRD[]x[]WINHEIGHT[]+0+0" }
Function "save-and-l23zoom"     { f.savegeometry f.moveresize 
"TWOTHIRD[]x[]WINHEIGHT[]+[]THIRD[]+0" }

>   I've been happier since I nested f.quit down in an extra layer of
>   menu, so it's harder to hit accidentally.

I have a nice trick where I bind Super-W to a menu with "f.delete" in it.
This way I have to hit two keys to close a window.

Which key is my window manager key is also an m4 macro: I used to have a
HP X terminal without a Super key, so I had to use Alt instead.
And a Sun... I think there, the Alt key was Meta and the Meta key was
Hyper. Or something weird like that. Enough to need a little adjustment
of ctwm's key mappings, which I could do based on the host name.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/xs4all.nl    -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature

Reply via email to