# # $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $ # # A little $HOME/.twmrc by Thomas Eriksson brummelufs@hotmail.com # # Modified (just colors and some menu options) by Istvan Keppler keppler@lajli.gau.hu # # twm... the original and the best... # 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 # This is for hiding the ugly menubar in windows who dont need em. NoTitle { # "x11amp" # x11amp, the winamp lookalike, http://x11amp.ml.org. # "xlogo" # a must have :) "xosview" } Color { BorderColor "gray85" DefaultBackground "black" DefaultForeground "gray85" TitleBackground "black" TitleForeground "gray85" MenuBackground "black" MenuForeground "gray85" MenuTitleBackground "gray65" MenuTitleForeground "black" IconBackground "black" IconForeground "white" IconBorderColor "black" IconManagerBackground "black" IconManagerForeground "gray85" PointerForeground "black" 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 "prg" 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 # This is for the window bar #LeftTitleButton "/usr/X11/include/bitmaps/checkmark.xbm" = f.delete LeftTitleButton "/usr/X11R6/include/X11/bitmaps/xm_noenter16" = f.delete #RightTitleButton "/usr/X11/include/bitmaps/menu12" = f.resize # # And a menus with the usual things # menu "prg" { "TWM" f.title #"" f.nop "Xterm" f.exec "xterm -sl 255 -bg black -fg white -name xterm@twm.org &" #"Midc" f.exec "xterm -sl 255 -bg black -fg white -e midc -b &" #"Netscape" f.exec "netscape &" #"Xosview" f.exec "xosview &" "" f.nop "Files" f.menu "files" "Editors" f.menu "editors" "Internet" f.menu "internet" "Mathematica" f.menu "mathematica" "Graphics" f.menu "graphics" "Viewers" f.menu "viewers" "Music" f.menu "music" "Games" f.menu "games" "Utilities" f.menu "utilities" "System" f.menu "system" } menu "files" { "Files" f.title "Midc" f.exec "xterm -sl 255 -bg black -fg white -e midc -b &" } menu "mathematica" { "Mathematica" f.title "Mathematica" f.exec "mathematica &" } menu "editors" { "Editors" f.title "Xemacs" f.exec "xemacs &" "StarOffice" f.exec "/usr/home/keppler/office52/program/soffice &" "Joe" f.exec "xterm -bg black -fg white -e joe &" } menu "system" { "System" f.title "Xosview" f.exec "xosview &" "Top" f.exec "xterm -bg black -fg white -e top &" "Gkrellm" f.exec "gkrellm &" } menu "viewers" { "Viewers" f.title "Ghostview" f.exec "gv &" "Xdvi" f.exec "xdvi -rv -fg black -bg white -geometry 800x700 &" "Acrobat" f.exec "acroread4 -geometry 800x700 &" } menu "internet" { "Internet" f.title "Netscape" f.exec "netscape -geometry 800x700 &" #"IRC II" f.exec "xterm -bg midnightblue -name irc@twm.org -fg white -e irk2 &" #"Portscan" f.exec "/home/prg/java/portscan/portscan &" #"ICQ" f.exec "/usr/local/ICQJava/ICQ &" "Lynx" f.exec "xterm -bg black -fg white -e lynx &" #Lynx, the bug-free internetbrowser :) #"" f.nop #"PPP" f.menu "ppp" } menu "ppp" { "PPP" f.title "Linkup" f.exec "pppd &" "Hang up" f.exec "ppp-off &" } menu "graphics" { "Graphics" f.title "XV" f.exec "xv -bg black -fg white -hi black -lo grey30 &" "Gimp" f.exec "gimp &" #"xRes" f.exec "/home/prg/xRes &" #"Xpaint" f.exec "xpaint" } menu "music" { "Music" f.title "CdPlayer" f.exec "xterm -bg black -fg white -e cd-console &" "Mp3Blaster" f.exec "xterm -bg black -fg white -e mp3blaster &" "RealPlayer" f.exec "/usr/home/keppler/RealPlayer8/realplay &" "Xmovie" f.exec "xmovie &" #"X11amp" f.exec "x11amp &" #"Workman" f.exec "workman &" #"TkMix" f.exec "tkmix &" } menu "games" { "Games" f.title "Xboard" f.exec "xboard -rv &" } menu "utilities" { "Utilities" f.title "Xman" f.exec "xman -rv &" "Xclock" f.exec "xclock -rv -analog &" "Xcalc" f.exec "xcalc -rv &" # The Realistic Macintosh emulator #"vMac" f.exec "/home/prg/vMacX/execmac &" # The Impressive Macintosh emulator #"Executor" f.exec "executor-demo &" #bochs a pc emulator for unix/beos .. able to run win95 but a bit slow :( #"Bochs" f.exec "/tmp/bochs-980227/bochs" } 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 "Screensaver" f.menu "screensaver" "Redraw" f.refresh "Restart" f.restart "Quit" f.menu "quit" } menu "quit" { "Really Quit?" f.title "No" f.nop "Yes" f.quit } menu "screensaver" { "ZZzz..." f.title "Laser" f.exec "xlock -nolock -mode laser &" "Qix" f.exec "xlock -nolock -mode qix &" "Star trek" f.exec "xlock -nolock -mode star &" "Galaxy" f.exec "xlock -nolock -mode galaxy -wireframe&" "Pyrotechnical" f.exec "xlock -nolock -mode pyro -wireframe &" "Swarm" f.exec "xlock -nolock -mode swarm &" "Linux" f.exec "xlock -nolock -mode flag &" } Icons { "XTerm" "/usr/X11R6/include/X11/bitmaps/Term" "x11amp" "/usr/include/X11/bitmaps/xfm_au.xbm" } 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" }