Meine twm Konfiguration unter cygwin. Die referenzierten .xbm Files liegen im Anhang bei und müssen unter cygwin in
/usr/include/X11/bitmaps/close.xbm
/usr/include/X11/bitmaps/diag.xbm
/usr/include/X11/bitmaps/menu.xbm
/usr/include/X11/bitmaps/rectangle.xbm
/usr/include/X11/bitmaps/resize.xbm
/usr/include/X11/bitmaps/triangle.xbm
abgelegt werden.
# # $Xorg: system.twmrc,v 1.3 2000/08/17 19:54:08 cpqbld Exp $ # # Default twm configuration file; needs to be kept small to conserve string # space in systems whose compilers don't handle medium-sized strings. # # Sites should tailor this file, providing any extra title buttons, menus, etc. # that may be appropriate for their environment. For example, if most of the # users were accustomed to uwm, the defaults could be set up not to decorate # any windows and to use meta-keys. # # $XFree86: xc/programs/twm/system.twmrc,v 1.3 2000/01/21 18:41:50 dawes Exp $ # RandomPlacement AutoRelativeResize DontMoveOff NoTitle { "TWM Icon Manager" "xclock" } ShowIconManager IconManagerGeometry "200-1+1" 2 SortIconManager IconifyByUnmapping NoGrabServer NoDefaults OpaqueMove RestartPreviousState DecorateTransients TitleFont "-adobe-helvetica-medium-r-normal-*-14-*-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*" MenuFont "-adobe-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*" IconFont "-adobe-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*" #ClientBorderWidth #AutoRaise { "xterm" } Color { BorderColor "green" DefaultBackground "black" DefaultForeground "green" TitleBackground "gray8" TitleForeground "lightgreen" MenuBorderColor "green" MenuBackground "gray8" MenuForeground "green" MenuTitleBackground "green" MenuTitleForeground "black" IconBackground "black" IconForeground "green" IconBorderColor "green" IconManagerBackground "gray8" IconManagerForeground "lightgreen" BorderTileForeground "darkgreen" BorderTileBackground "Darkgreen" } # # Define some useful functions for motion-based actions. # MoveDelta 3 Function "move-or-lower" { f.move f.deltastop f.lower } Function "move-or-raise" { f.move f.deltastop f.raise } Function "move-or-iconify" { f.move f.deltastop f.iconify } # # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish # Button1 = : root : f.menu "defops" Button1 = m : window|icon : f.function "move-or-lower" Button2 = m : window|icon : f.iconify Button3 = m : window|icon : f.function "move-or-raise" Button1 = c : window : f.raise #Button1 = : border : f.raise Button1 = : title : f.function "move-or-raise" Button2 = : title : f.raiselower Button1 = : icon : f.function "move-or-iconify" Button2 = : icon : f.iconify Button1 = : iconmgr : f.iconify Button2 = : iconmgr : f.iconify LeftTitleButton "rectangle.xbm" = f.delete LeftTitleButton "menu.xbm" = f.menu "winops" RightTitleButton "triangle.xbm" = f.iconify RightTitleButton "resize.xbm" = f.resize # # And a menus with the usual things # menu "defops" { "Root" f.title "WinOps" f.menu "winops" "Status" f.menu "status" "---" f.nop "localhost" f.exec "exec xterm -u8 -bg black -fg green -e /usr/bin/bash -l &" "---" f.nop "MC" f.exec "exec xterm -e mc &" "Vim" f.exec "exec gvim &" "Lynx" f.exec "exec xterm -e lynx &" "Emacs" f.exec "exec xemacs &" "LYX" f.exec "exec lyx &" "---" f.nop "Show Iconmgr" f.showiconmgr "Hide Iconmgr" f.hideiconmgr "Restart" f.restart "Exit" f.quit } menu "login" { } menu "status" { "load anywhere" f.exec "exec ssh -X me@there.com 'xosview -geometry 180x180-4+4' &" } menu "winops" { "Iconify" f.iconify "Resize" f.resize "Move" f.move "Raise" f.raise "Lower" f.lower "Focus" f.focus "Unfocus" f.unfocus "Kill" f.destroy "Delete" f.delete } |