# .twmrc modified by George Bell from files at http://www.plig.org/xwinman/vtwm.html # # Place this file (.twmrc) in your home directory and restart X # # Designed for use on WIBR's hebrides # # Last updated 30 Jan 2004 NoGrabServer #NoDefaults RestartPreviousState DecorateTransients TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" #ClientBorderWidth 2 BorderWidth 3 ButtonIndent 2 NoHighlight AutoRelativeResize #DefaultBackground FramePadding 0 #ForceIcons #NoRaiseOnMove OpaqueMove Zoom 500 Color { BorderColor "navy" DefaultBackground "darkblue" DefaultForeground "white" TitleBackground "red" TitleForeground "yellow" MenuBackground "blue" MenuForeground "yellow" MenuTitleBackground "yellow" MenuTitleForeground "red" IconBackground "darkblue" IconForeground "gray60" IconBorderColor "darkblue" IconManagerBackground "navy" IconManagerForeground "yellow" PointerForeground "navy" PointerBackground "white" } # # Define some useful functions for motion-based actions. # MoveDelta 1 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 "main_menu" Button2 = : root : f.delete Button3 = : root : f.menu "window" 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 = : title : f.function "move-or-raise" Button2 = : title : f.raiselower Button3 = : title : f.iconify Button1 = : icon : f.function "move-or-iconify" Button2 = : icon : f.destroy Button3 = : icon : f.iconify Button1 = : iconmgr : f.iconify Button2 = : iconmgr : f.destroy Button3 = : iconmgr : f.iconify ####### Menus and cursors ####### menu "main_menu" { "WIBR Bioinformatics and Research Computing on hebrides" f.title "xterm" f.menu "xterm_colors" "Nedit editor" f.exec "nedit -foreground white -background black &" "Xemacs editor" f.exec "xemacs -bg white -fg black &" "Clipboard" f.exec "xclipboard -bg skyblue &" "Netscape" f.exec "netscape &" "Acrobat Reader" f.exec "acroread &" "Man pages" f.exec "xman &" "Load viewer" f.exec "xload -hl green &" "Analog clock" f.exec "clock -geometry 20x30 &" "Digital clock" f.exec "xclock -d &" "Calculator" f.exec "xcalc &" "MATLAB" f.exec "matlab &" "ClustalX" f.exec "clustalx -bg white -fg black &" "Jalview" f.exec "jalview /home/gbell/bin/test FASTA &" "NJplot" f.exec "njplot &" "Screensaver without lock" f.exec "xlock -nolock -mode random &" "Screensaver with lock" f.exec "xlock -mode random &" "Background color" f.menu "bg_colors" } menu "bg_colors" { "Background colors" f.title "white" f.exec "xsetroot -solid white" "black" f.exec "xsetroot -solid black" "yellow" f.exec "xsetroot -solid yellow" "red" f.exec "xsetroot -solid red" "blue" f.exec "xsetroot -solid blue" "green" f.exec "xsetroot -solid green" "purple" f.exec "xsetroot -solid purple" "orange" f.exec "xsetroot -solid orange" } menu "xterm_colors" { "xterm colors" f.title "black on white" f.exec "xterm -title $HOST -bg white -fg black &" "white on black" f.exec "xterm -title $HOST -bg black -fg white &" "black on yellow" f.exec "xterm -title $HOST -bg yellow -fg black &" "yellow on black" f.exec "xterm -title $HOST -bg black -fg yellow &" "white on blue" f.exec "xterm -title $HOST -bg blue -fg white &" "blue on white" f.exec "xterm -title $HOST -bg white -fg blue &" "white on red" f.exec "xterm -title $HOST -bg red -fg white &" "red on white" f.exec "xterm -title $HOST -bg white -fg red &" "white on blue" f.exec "xterm -title $HOST -bg blue -fg white &" "blue on white" f.exec "xterm -title $HOST -bg white -fg blue&" } menu "window" { "X Windows" f.title "Kill Window" f.destroy "Delete Window" f.delete "" f.nop "Maximize" f.fullzoom "Minimize" f.iconify "Resize" f.resize "Move" f.move "Raise" f.raise "Lower" f.lower "" f.nop "Focus" f.focus "Unfocus" f.unfocus "Show Iconmgr" f.showiconmgr "Hide Iconmgr" f.hideiconmgr "" f.nop "Redraw" f.refresh "Restart" f.restart "Quit" f.menu "quit" } menu "quit" { "Really Quit?" f.title "No" f.nop "Yes" f.quit } Cursors { Frame "left_ptr" Title "left_ptr" Icon "left_ptr" IconMgr "left_ptr" Move "fleur" Resize "fleur" Menu "hand1" Button "hand2" Wait "clock" Select "dot" Destroy "pirate" }