######################################################################### # # # Fichier: /u2/fturi/.twmrc # # # # Contenu: fichier de configuration servant a l'interface twm # #_______________________________________________________________________# # Date: 09/06/92 # # # # Auteur: Francois TURI (fturi) # # # ######################################################################### #IconDirectory "/users/jim/icons" # use *bitmapFilePath instead. # # Use the SHAPE extension to make titles use as little space as possible.The # location of the titles is specified as a fraction of the distance from the # left (numerator positive) or right edge (numerator negative).A denominator # of 0 indicates that the numerator is measured in pixels.The title is then # justified over the indicated spot (note special cases are made for center on # 0/0 and right on 0/0 to indicate the center and right edge of the titlebar). # # SqueezeTitle # also sets default to Squeeze all Titles # { # # name justify num denom # "oclock" center 0 0 # centered over middle of title # "XTerm" left 0 0 # left edge of title # "xlogo" right 0 0 # for kicks # "emacs" right 0 0 # left side emacs with center tab # "xmh" center 0 0 # } # DontSqueezeTitle # { # "XLogout" # make it stand out when mapped # } # NoDefaults # turn off iconify and resize button # TitleButtonBorderWidth 0 # don't want to see box around button # ButtonIndent 0 # button doesn't have to be smaller # UsePPosition "on" # use program-specified size hints accepted # NoHighlight # do not flash borders on enter events # OpaqueMove # actually move window instead of outline AutoRelativeResize # don't require resize to cross border to start RestartPreviousState # reiconify iconified things on startup # ClientBorderWidth # use the application border width on frame BorderWidth 1 # width of top level windows created by twm # NoGrabServer # don't grab server during menus, etc. # NoRaiseOnMove # allow moving under other windows # NoRaiseOnResize # allow resizing under other windows NoTitleFocus # avoid keystrokes in wrong window cause of lag DecorateTransients # put titlebars on transients TitleFont "-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-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*" # NoSaveUnders # faster to just repaint then save # XORvalue 1 # tend to use visually distinct adjacent colors ConstrainedMoveTime 0 # turn off horizontal/vertical only moving # IconRegion "600x200-200+0" NORTH EAST 75 25 # NoCaseSensitive # turn off case-sensitivity in sorting icons # WarpUnmapped # allow warping to unmapped windows ######################################################################### # # # Declare some nice colors # # # ######################################################################### #Pixmaps #{ # TitleHighlight "solid4x4" # make it stand out #} Color { DefaultBackground "maroon" DefaultForeground "gray85" BorderColor "gray70" TitleBackground "maroon" TitleForeground "gray85" MenuBackground "maroon" MenuForeground "gray85" MenuTitleBackground "gray70" MenuTitleForeground "maroon" IconBackground "maroon" IconForeground "gray85" IconBorderColor "gray85" IconManagerBackground "maroon" IconManagerForeground "gray85" } Monochrome { DefaultBackground "black" DefaultForeground "gray70" TitleBackground "black" TitleForeground "gray70" MenuBackground "black" MenuForeground "gray70" MenuTitleBackground "black" MenuTitleForeground "gray70" IconManagerBackground "black" IconManagerForeground "gray70" IconManagerHighlight "gray85" BorderColor "white" } Monochrome { DefaultBackground "black" DefaultForeground "white" TitleBackground "black" TitleForeground "white" MenuBackground "black" MenuForeground "white" MenuTitleBackground "black" MenuTitleForeground "white" IconManagerBackground "black" IconManagerForeground "white" IconManagerHighlight "white" BorderColor "white" } ######################################################################### # # # Display an icon manager across the top of the screen.Don't manage # # the windows for which you don't show a title. # # # ######################################################################### SortIconManager # keep them in alphabetic order ShowIconManager # start with iconmgr up SortTwmWindows IconManagerGeometry "160x400+0+300" # strip across top IconifyByUnmapping # just use icon manager MoveDelta 1 # need to move this much before takes effect #Fenetres ne devant pas apparaitre dans TWM Icon Manager IconManagerDontShow # but ignore these windows { "xclock" "xbiff" "oclock" "xeye" "xdclock" # correspond a l'application dclock "xpclock" "xload" } #Fenetres gardant quand meme un icone lorsqu'ils sont iconnifiee #Cet ensemble est due a la fonction IconifyByUnmapping DontIconifyByUnmapping # don't lose them (still in TwmWindows menu) { # "xclock" # "xbiff" # "xeyes" # "oclock" # "xdclock" # "xpclock" # "xload" "TWM Icon Manager" } #Fenetres sans barre titres NoTitle # little programs that look like icons { "xclock" "xbiff" "xeye" "xdclock" "xpclock" "xmore" "xload" # "TWM Icon Manager" } WindowRing # f.warpring acts along these windows { "XTerm" "emacs" "Xmh" } Function "move-or-raise" # simulate uwm action { f.move f.deltastop f.raise } ######################################################################### # # # Define key bindings # # # ######################################################################### LeftTitleButton "menu12" = f.menu "Menu_fenetreG" # add a menu to each window RightTitleButton "/u2/fturi/cdnflag" = f.menu "Menu_fenetreD" DefaultFunction f.nop # ignore extraneous events #event Touche Lieu action #---------------------------------------------------------------------------- # Button m=Alt root=fond ecran # s=Shift title=barre menu #[1][2][3] c=Ctrl icon=icone #/ \ frame=interieur fen #|Souris | window=bord fen #\_______/ # Button3 = : root : f.menu "Systeme" Button2 = : root : f.menu "menu" Button1 = : root : f.menu "TwmWindows" Button1 = s : root : f.menu "Editeurs" Button2 = s : root : f.menu "Fond_ecran" Button3 = s : root : f.menu "Boite_outils" Button1 = m : root : f.menu "Ecran" Button2 = m : root : f.menu "Souris" Button3 = m : root : f.menu "Jeux" Button1 = c|m|s : root : f.refresh Button2 = c|m|s : root : f.twmrc Button3 = c|m|s : root : !"xkill &" Button1 = : title : f.function "move-or-raise" Button1 = : icon : f.iconify Button1 = : iconmgr : f.iconify Button2 = m : iconmgr : f.menu "Menu_fenetreD" Button3 = m : iconmgr : f.menu "Menu_fenetreG" Button1 = s|m : window|icon|frame|title : f.raise Button2 = s|m : window|icon|frame|title : f.lower Button3 = s|m : window|icon|frame|title : f.menu "Menu_fenetreD" Button1 = s|c : window|icon|frame|title : f.move Button2 = s|c : window|icon|frame|title : f.resize Button3 = s|c : window|icon|frame|title : f.menu "Menu_fenetreG" "Break" = : window|icon : f.iconify "Break" = : root : !"xkill" "F1" = : window|icon|frame|title : f.raise "F2" = : window|icon|frame|title : f.lower "F5" = : window|icon|frame|title : f.winrefresh "F6" = : window|icon|frame|title : f.identify "F1" = s : window|icon|frame|title : f.autoraise "KP_Subtract" = : all : f.colormap "next" "KP_Add" = : all : f.colormap "default" "Home" = : all : f.warptoiconmgr "" "Left" = m : all : f.backiconmgr "Right" = m : all : f.forwiconmgr "Up" = m : all : f.upiconmgr "Down" = m : all : f.downiconmgr ######################################################################### # # # Define some useful menus. # # # ######################################################################### menu "Systeme" { "System" f.title "Restart Twm" f.restart "Source .twmrc" f.twmrc "Exit Twm" f.quit "" f.nop "xterm2" !"xterm -title console2 &" "xterm3" !"xterm -title console3 &" "@descartes" !"xterm -title console@descartes -e rlogin descartes &" "@laplace" !"xterm -title console@laplace -e rlogin laplace &" "@lagrange" !"xterm -title console@lagrange -e rlogin lagrange &" "@lambert" !"xterm -title console@lambert -e rlogin lambert &" "@leibniz" !"xterm -title console@lleibniz -e rlogin leibniz &" "@cayley" !"xterm -title console@cayley -e rlogin cayley &" "@napier" !"xterm -title console@napier -e rlogin napier &" "" f.nop "xlock" f.menu "lock" "xmail" !"xmail &" "Refresh" f.refresh "Unfocus" f.unfocus "Version" f.version "" f.nop "Show Icon Box" f.showiconmgr "Hide Icon Box" f.hideiconmgr "Logout" f.warpto "xlogout" } menu "lock" { "XLOCK" f.title "Noir" !"xlock -remote &" "hop" !"xlock -mode hop -remote &" "SUN vie" !"xlock -mode life -remote &" "Droite" !"xlock -mode qix -remote &" "SUN" !"xlock -mode image -remote &" "abeille" !"xlock -mode swarm -remote &" "lisajou" !"xlock -mode rotor -remote &" "pyro" !"xlock -mode pyro -remote &" "Mathieu" !"xlock -mode flame -remote &" } menu "menu" { "tableau bord" f.title "Systeme" f.menu "Systeme" "Operation" f.menu "Operation" "Editeurs" f.menu "Editeurs" "Fond_ecran" f.menu "Fond_ecran" "Boite_outils" f.menu "Boite_outils" "Ecran" f.menu "Ecran" "Souris" f.menu "Souris" "Jeux" f.menu "Jeux" } menu "Operation" { "Fenetre" f.title "Send Delete" f.delete "Destroy Window" f.destroy "" f.nop "Save" f.saveyourself "Refresh" f.refresh "" f.nop "Iconify" f.iconify "Resize" f.resize "Move" f.move "Force Move" f.forcemove "Cacher" f.raise "Lower" f.lower "Info" f.identify "Focus" f.focus "Unfocus" f.unfocus # "cacher barre" f.notitle # "montrer barre" f.title } menu "Menu_fenetreG" { "Fenetre:modif" f.title "Iconify" f.iconify "Cacher" f.raiselower "Refresh" f.winrefresh "Focus" f.focus "Unfocus" f.unfocus "Auto Raise I/O" f.autoraise "" f.nop "Save" f.saveyourself "Send Delete" f.delete "Destroy Window" f.destroy } menu "Menu_fenetreD" { "Fenetre:outil" f.title "Cut File" f.cutfile "zoom" f.zoom "backzoom" f.bottomzoom "Information" f.identify "Save" f.saveyourself } menu "Editeurs" { "Propre" f.title "use-lisp.txt" !"xedit -name EDuse-lisp -geometry +280-0 notes/use-lisp.txt&" "use-unix.txt" !"xedit -name EDuse-unix -geometry +280+0 notes/use-unix.txt&" "Ed-lettre" !"xedit -name Ed-lettre -geometry +280-0 lettre/.entete&" "Editeur-0" !"xedit -name Editeur1 -geometry +200-0 &" ".twmrc" !"xedit -name ED.twmrc -geometry +280+0 .twmrc &" "Unix" f.menu "Ed-Unix" "Systeme" f.menu "Ed-systeme" "Nouveaux" f.menu "Ed-qcq" } menu "Ed-Unix" { "Environement" f.title "mesftp.txt" !"xedit -name EDmesftp -geometry +280+0 notes/mesftp.txt&" "autoexec.bat" !"xedit -name EDauto.bat -geometry +280-0 unix/autoexec.bat&" ".Xdefaults" !"xedit -name ED.Xdefaults -geometry +300+0 .Xdefaults&" "rnmail.cmd" !"xedit -name ED.rnmail -geometry +300+0 unix/rnmail.cmd&" "week" !"xedit -name ED.week -geometry +300+0 unix/week.cmd &" "backup" !"xedit -name ED.backup -geometry +300+0 unix/backup1.cmd&" } menu "Ed-systeme" { "Systeme" f.title "config.sys" !"xedit -name EDconfig -geometry +300+0 unix/config.sys&" ".cshrc" !"xedit -name ED.cshrc -geometry +300-0 .cshrc &" ".xsession" !"xedit -name ED.xsession -geometry +300+0 .xsession &" } menu "Ed-qcq" { "nouveaux" f.title "Editeur-1" !"xedit -name Editeur1 -geometry +200-0 &" "Editeur-2" !"xedit -name Editeur2 -geometry +200+0 &" "Editeur-3" !"xedit -name Editeur3 -geometry +220-0 &" "Editeur-4" !"xedit -name Editeur4 -geometry +220+0 &" "Ed-lisp" !"xedit -name Ed-lisp -geometry +260+0 ia/.entete &" } menu "Ed-lsp" { "Ed-se.ll" !"xedit -name Ed-se.ll -geometry +240-0 cs486/a3/expert.lsp&" "Ed-theorem.ll" !"xedit -name Ed-th.ll -geometry +240+0 cs486/a3/theorem.lsp&" "Ed-readme" !"xedit -name Ed-readme -geometry +260-0 cs486/a3/README&" "Ed-know" !"xedit -name Ed-knowledge -geometry +260-0 cs486/a3/knowledge.lsp&" } menu "Fond_ecran" { "Fond_ecran" f.title "LunarRover" !"xv -root image/LunarRover.GIF &" "Hobbes the Tiger" !"xv -root image/Tiger.GIF &" "Cool " !"xv -root image/SC90jan.GIF &" "Mickey" !"xv -root image/fantasia.GIF &" "terminator" !"xv -root image/terminator2.GIF &" "terminator 2" !"xv -root image/t2_bike.JPG &" "*.*" !"xv image/*.* &" } menu "Boite_outils" { "Boite a outil" f.title "xrn" !"xrn &" "adresse" !"echo 'anonymous fturi@undergrad.math.waterloo.edu' | xmessage&" "/var..." !"echo '/var/spool/mail/fturi2' | xmessage &" "xmore" !"xmore" "xdvi" !"xdvi -geometry 690x820+25+50 ia/dvi/ref &" "xditview" !"xditview -geometry 690x820+25+50 ia/dvi/ref &" "xload" !"xload" "" f.nop "Calculator" !"xcalc &" "Oclock" !"oclock &" "Notepad" !"xclipboard &" "" f.nop "Eyes" !"xeyes &" "xpdclock" !"xpclock &" "dclock" !"dclock -name xdclock &" "xbiff" !"xbiff &" } menu "Ecran" { "Screen Saver" f.title "Blank" !"xset s blank -display $DISPLAY &" "No Blank" !"xset s noblank -display $DISPLAY &" "Saver 2 Sec." !"xset s 2 2 -display $DISPLAY &" "Saver 2 Min." !"xset s 120 120 -display $DISPLAY &" "Saver 10 Min." !"xset s 600 600 -display $DISPLAY &" } menu "Souris" { "Ecran" f.title "Bell Loud" !"xset b 75&" "Bell Normal" !"xset b 50&" "Bell Quiet" !"xset b 25&" "Bell Off" !"xset b off&" "Mouse Fast" !"xset m 5 1&" "Mouse Normal" !"xset m 3 1&" "Mouse Slow" !"xset m 1 1&" } # menu "D i v e r s" # { # "Kill Window" f.kill # "xterm -e /bin/sh" !"xterm -e /bin/sh &" # "xhost +" !"xhost + >/dev/null" # "xhost -" !"xhost - >/dev/null" # } menu "Jeux" { "Jeux" f.title "Tetris" !"xtetris &" "Puzzle" !"puzzle &" "Robot" !"xrobot &" "toto" f.function "toto" }