#********************************************************************** # # .twmrc # #********************************************************************** RestartPreviousState IconManagerDontShow { "gnomemeeting_status_plugin" "xbiff" "Xman" "xload" "xclock" "uustatus" "Console" "xosview" "xbatt" "wmbattery" } IconManagerGeometry "150x300-0+130" IconRegion "300x150+500+0" North East 30 30 AppletRegion +300+50-300+0 North East 20 20 { "gnomemeeting_status_plugin" "karm" } UsePPosition on DontMoveOff RandomPlacement NoCaseSensitive ShowIconManager SqueezeTitle AutoRelativeResize IconifyByUnmapping DontIconifyByUnmapping { "uustatus" "Console" "xload" "xclock" } WarpUnmapped NoDecorateTransients RightHandSidePulldownMenus #NaturalAutoPanBehavior NotVirtualGeometries FixManagedVirtualGeometries FixTransientVirtualGeometries ShallowReliefWindowButton SunkFocusWindowTitle TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuTitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" DoorFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" InfoFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" VirtualDesktopFont "-adobe-helvetica-medium-r-normal--*-75-*-*-*-*-*-*" WarpCursor BorderWidth 2 TitleFont "8x13" MenuFont "8x13" IconFont "8x13" AutoRaise { # "xterm" # "xemacs" # "VTWM Icon Manager" "xbatt" "xmms" "beep-media-player" } Color { BorderColor "red" BorderTileForeground "blue" BorderTileBackground "yellow" TitleForeground "white" TitleBackground "blue" MenuForeground "yellow" MenuBackground "darkgreen" MenuTitleForeground "red" MenuTitleBackground "blue" IconForeground "darkgreen" IconBackground "cadetblue" IconBorderColor "green" } #Button = KEYS : CONTEXT : FUNCTION #---------------------------------- Button2 = : root : f.menu "twm menu" Button3 = : root : f.menu "rootmenu" Button3 = : title : f.menu "Frame" Button3 = : frame : f.menu "Frame" Button3 = : icon : f.menu "Frame" Button2 = : title : f.move Button2 = : frame : f.move Button2 = c s : title : f.forcemove Button2 = c : title : f.resize Button2 = c : frame : f.resize Button1 = c : title : f.zoom Button1 = c : frame : f.zoom Button1 = : title : f.raise Button1 = : frame : f.raise Button1 = s : title : f.lower Button1 = s : frame : f.lower Button2 = : icon : f.move #KEY = KEYS : CONTEXT : FUNCTION #---------------------------------- "KP_Add"= : window :f.raiselower "F5" = : window :f.raiselower "L5" = : window :f.raiselower "KP_Enter"= : window :f.iconify "L7" = : window :f.iconify "F7" = : window :f.iconify "KP_Enter"= : icon :f.deiconify "L7" = : icon :f.deiconify "F7" = : icon :f.deiconify "Right" = m : all :f.downiconmgr "Left" = m : all :f.upiconmgr "Up" = m : all :f.deiconify "Down" = m : all :f.iconify "L1" = : all :f.hideiconmgr "L1" = m : all :f.showiconmgr "L2" = : all :f.warpto "Work0" "L4" = : all :f.warpto "Work1" "F2" = s : all :f.warpto "Work0" "F2" = m : all :!"xterm -name Work0 -fg Green -bg Red -geometry 80x24+30+40 -i &" "F3" = s : all :f.warpto "Work4" "KP_2" = : all :f.warpto "CASSIDY" "KP_2" = s : all :f.warpto "GIMLI" "F7" = s : all :f.warpto "Work6" "KP_6" = : all :f.warpto "Work6" "F4" = : all :f.warpto "Work1" "F4" = m : all :!"work1" "L6" = : all :f.warpto "Work2" "F6" = : all :f.warpto "Work2" "F6" = m : all :!"work2" "L8" = : all :f.warpto "Work3" "F8" = : all :f.warpto "Work3" "F8" = : all :f.warpto "Work3" "F8" = m : all :!"work3" "L9" = : all :f.warpto "Main" "F9" = : all :f.warpto "Main" "F9" = s : all :f.warpto "Varrus" "L10" = : all :f.warpto "emacs" "KP_0" = : all :f.warpto "emacs" "KP_Insert"= : all :f.warpto "emacs" "F10" = : all :f.warpto "emacs" "F10" = s : all :f.warpto "Epiphany" "F11" = : all :f.warpto "xterm" "F11" = s : all :f.warpto "mtr" "F11" = m : all :!"xterm -name xterm -geometry 100x40 -fg Yellow -bg DarkBlue &" "R1" = : all :f.warpto "BUD" "R2" = : all :f.warpto "News" "KP_8" = : all :f.warpto "News" "KP_8" = s : all :f.warpto "JAPAN" "KP_7" = s : all :f.warpto "WEST" "KP_6" = s : all :f.warpto "ROAD" "KP_9" = s : all :f.warpto "EAST" "KP_Up" = : all :f.warpto "News" "R2" = m : all :!"rxvt -T News -n News -geometry 100x60 -e slrn &" "KP_Multiply"= : all :f.warpto "SALT" "KP_Multiply"=s: all :f.warpto "NORTH" "R4" = : all :f.warpto "LOX" "KP_Divide"= : all :f.warpto "PIKE" "KP_4" = : all :f.warpto "LOX" "KP_4" = s : all :f.warpto "COD" "KP_7" = : all :f.warpto "NOX" "KP_3" = : all :f.warpto "tkirc" "KP_3" = s : all :f.warpto "NIC" "KP_Left"= : all :f.warpto "LOX" "R6" = : all :f.warpto "Trading" "R9" = : all :f.warpto "lynx" "KP_9" = : all :f.warpto "lynx" "KP_Prior"= : all :f.warpto "lynx" "R11" = m : all :f.twmrc "KP_5" = m : all :f.twmrc "R11" = m s : all :!"lockscreen &" "Pause" = m s : all :!"lockscreen &" "R13" = : all :f.warpto "Morden" "KP_1" = s : all :f.warpto "CATFISH" "KP_Insert" = m : all :!"sh -c 'if xmmsctrl playing; then xmmsctrl pause; else xmmsctrl play; fi'" #"Left" = meta : all : f.exec "xmmsctrl prev" #"Right" = meta : all : f.exec "sh -c 'if xmmsctrl playing; then if xmmsctrl paused; then xmmsctrl pause; else xmmsctrl next; fi; else xmmsctrl play; fi'" #"Down" = meta : all : f.exec "sh -c 'if xmmsctrl playing; then if xmmsctrl paused; then xmmsctrl stop; else xmmsctrl pause; fi; else xmmsctrl play; fi'" "KP_4" = m s c : all :!"xmmsctrl prev" "KP_6" = m s c : all :!"xmmsctrl next" "KP_2" = m s c : all :!"xmmsctrl vol -10" "KP_8" = m s c : all :!"xmmsctrl vol +10" #"Left" = meta shift : all : f.exec "xmmsctrl vol -10" #"Right" = meta shift : all : f.exec "xmmsctrl vol +10" #"Up" = meta : all : f.exec "if window_shown 'XMMS Playlist'; then xmmsctrl play_list 0; else xmmsctrl play_list 1; fi" Icons { "xfd" "xfd_icon" # obtained from /usr/include/X11/bitmaps "xterm" "terminal" "emacs" "/usr/local/lib/emacs/etc/emacs.icon" "xemacs" "/usr/local/lib/emacs/etc/emacs.icon" } NoTitle { "xclock" # don't need a title bar on this ... "xload" # or this "topBox" # the Manual Browser "xbiff" # the mail notifier "xeyes" # the mail notifier "Motif CD Audio Player 0" # CD player "xmcd2" "xmcd" "xmix" "xosview" "uustatus" "gnomemeeting_status_plugin" "xmms" "beep-media-player" "xbatt" "Console" "wmbattery" } #NoBorder { # "xmms" #} menu "rootmenu" { "Xterm" !"xterm &" "Manual Browser" !"xman &" "Tetris" !"xtetris &" "bud" !"xterm -T Bud -e rlogin -e bud &" "Calculator" !"xcalc &" "CD player" !"xcdplayer &" "xload" !"xload &" "xclock" !"xclock &" "LOCK" !"lockscreen &" "Exit Xwindows" f.quit } menu "Frame" { "Close" f.iconify "Remove" f.delete "Move" f.move "Resize" f.resize "Full Height" f.zoom "Front" f.raise "Back" f.lower "Left Half" f.leftzoom "Right Half" f.rightzoom "Full Screen" f.fullzoom "Redisplay" f.winrefresh "Quit" f.destroy } menu "twm menu" { "Window Ops" f.title "Refresh" !"switcher -e 0; xrefresh" "Focus on Root" f.unfocus "Re-read .twmrc" f.twmrc "Source something" f.source "something" "Hide Icon Manager" f.hideiconmgr "Show Icon Manager" f.showiconmgr "twm Version" f.version "(De)Iconify" f.iconify "Move Window" f.move "Resize Window" f.resize "Raise Window" f.raise "Lower Window" f.lower "Focus on Window" f.focus "Destroy Window" f.destroy "Exit TWM (only)" f.quit "Exit X Windows" !"kill -TERM $XTOOLSPID" }