# # $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea 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. # #------------------------------------------------------------------------------ # Path -- seems only one path statement is allowed #------------------------------------------------------------------------------ IconDirectory "~/.themes_vtwm/images" #------------------------------------------------------------------------------ # Variables #------------------------------------------------------------------------------ RightHandSidePulldownMenus RandomPlacement #OpaqueMove #OpaqueResize #AutoPan 10 StayUpOptionalMenus OldFashionedTwmWindowsMenu ##StrictIconManager # Only show icionified clients in Manager FixManagedVirtualGeometries # corrects window placement in panner NoGrabServer NoDefaults RestartPreviousState IconifyByUnmapping ShowIconManager SqueezeTitle { "*" left 0 0 } # DecorateTransients ButtonColorIsFrame BorderWidth 3 MoveDelta 3 ResizeRegion "NorthEast" NotVirtualGeometries FixTransientVirtualGeometries VirtualDesktop "1x4-0-0" 15 ##JMCRESOTHERS##IconManagerGeometry "110x100+0+0" 1 # on Top ##JMCRESOTHERS##IconManagers ##JMCRESOTHERS##{ ##JMCRESOTHERS## "xmms" "450x5+0-15" 1 ##JMCRESOTHERS## "Audacious" "450x5+0-15" 1 ##JMCRESOTHERS## "gxine" "450x5+0-15" 1 ##JMCRESOTHERS##} ##JMCRES1024x768##IconManagerGeometry "110x100+0+0" 1 # on Top ##JMCRES1024x768##IconManagers ##JMCRES1024x768##{ ##JMCRES1024x768## "xmms" "450x5+0-15" 1 ##JMCRES1024x768## "Audacious" "450x5+0-15" 1 ##JMCRES1024x768## "gxine" "450x5+0-15" 1 ##JMCRES1024x768##} IconManagerGeometry "110x100+0+0" 1 # on Top IconManagers { "xmms" "450x5+0-15" 1 "Audacious" "450x5+0-15" 1 "gxine" "450x5+0-15" 1 "[Ff]irefox*" "400x5-0+0" 1 "[Mm]ozilla*" "400x5-0+0" 1 } ##JMCRES1680x1050##IconManagerGeometry "110x100+0+0" 1 # on Top ##JMCRES1680x1050##IconManagers ##JMCRES1680x1050##{ ##JMCRES1680x1050## "xmms" "450x5+0-15" 1 ##JMCRES1680x1050## "Audacious" "450x5+0-15" 1 ##JMCRES1680x1050## "gxine" "450x5+0-15" 1 ##JMCRES1680x1050## "[Ff]irefox*" "400x5-0+0" 1 ##JMCRES1680x1050## "[Mm]ozilla*" "400x5-0+0" 1 ##JMCRES1680x1050##} # the following is for a 3d look BorderBevelWidth 2 ButtonBevelWidth 1 ClearBevelContrast 40 DarkBevelContrast 40 #IconBevelWidth 2 #IconManagerBevelWidth 1 InfoBevelWidth 2 #MenuBevelWidth 2 ShallowReliefWindowButton TitleBevelWidth 1 ButtonIndent -1 # Fixes Buttons for 4.7 TitleButtonBorderWidth 0 # Fixes Buttons for 4.7 # BeNiceToColormap # conserve color map TitleFont "-*-lucidatypewriter-bold-*-*-*-14-*-*-*-*-*-*-*" ResizeFont "-*-lucidatypewriter-bold-*-*-*-14-*-*-*-*-*-*-*" MenuFont "-*-lucidatypewriter-medium-*-*-*-14-*-*-*-*-*-*-*" MenuTitleFont "-*-lucidatypewriter-bold-*-*-*-12-*-*-*-*-*-*-*" IconFont "-*-lucidatypewriter-bold-*-*-*-10-*-*-*-*-*-*-*" InfoFont "-*-lucidatypewriter-bold-*-*-*-12-*-*-*-*-*-*-*" IconManagerFont "-*-lucidatypewriter-bold-*-*-*-10-*-*-*-*-*-*-*" VirtualDesktopFont "-*-lucidatypewriter-bold-*-*-*-8-*-*-*-*-*-*-*" Function "VTWM Profile" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh KILL" f.exec "Esetroot -s ~/.themes_vtwm/images/matrix2.jpg &" ##JMCRESOTHERS## f.exec "rclock -bg 'black' -fg 'green' -geometry 65x65-0+485 &" ##JMCRES1024x768## f.exec "rclock -bg 'black' -fg 'green' -geometry 65x65-0+485 &" f.exec "rclock -bg 'black' -fg 'green' -geometry '85x85+1189+605' &" ##JMCRES1680x1050## f.exec "rclock -bg 'black' -fg 'green' -geometry '110x110-0+647' &" } # # Lists # WarpCursor NoHighlight { "VTWM Icon Manager" "VTWM Desktop" "xclock" "oclock" "rclock" "asapm" "astime" "asclock" "astime" "xeyes" "xload" } NailedDown { "VTWM*" "VTWM Icon Manager" "VTWM Desktop" "xclock" "oclock" "rclock" "asapm" "astime" "asclock" "astime" "xeyes" "xconsole" "xmailbox" "xbiff" "xneko" "xload" } NoTitle { "xconsole" "xmailbox" "xbiff" "xneko" "xload" "xclock" "oclock" "rclock" "asapm" "astime" "asclock" "astime" "xeyes" "VTWM Desktop" "VTWM Icon Manager" "VTWM*" } DontSqueezeTitle { "VTWM Desktop" } StartIconified { "xconsole" } DontShowInDisplay { "xmailbox" "xbiff" "VTWM*" "VTWM Icon Manager" "VTWM Desktop" "xneko" "xclock" "oclock" "rclock" "asapm" "astime" "asclock" "xeyes" "xconsole" "xload" } IconManagerDontShow { "VTWM*" "VTWM Icon Manager" "VTWM Desktop" "xeyes" "xclock" "oclock" "rclock" "asapm" "asclock" "astime" "xneko" "xmailbox" "xbiff" "xload" "Calendar" } Color { BorderColor "gray15" BorderTileBackground "black" BorderTileForeground "gray15" DefaultBackground "black" DefaultForeground "green" TitleBackground "gray15" TitleForeground "green" MenuBackground "gray10" MenuForeground "green" MenuTitleBackground "gray50" MenuTitleForeground "green" IconBorderColor "gray85" IconManagerBackground "black" { "rxvt" "gray20" "aterm" "gray20" "xterm" "gray20" "elvis" "gray15" "emacs" "gray15" "VIM" "gray15" "Vim" "gray15" "GVim" "gray15" "gvim" "gray15" } IconManagerForeground "green" VirtualBackground "gray15" VirtualForeground "black" DesktopDisplayBackground "grey60" IconBackground "black" IconForeground "green" } Pixmaps { ##JMCRESOTHERS## VirtualBackgroundPixmap "~/.themes_vtwm/images/mat-1024x768.xpm" ##JMCRES1024x768## VirtualBackgroundPixmap "~/.themes_vtwm/images/mat-1024x768.xpm" VirtualBackgroundPixmap "~/.themes_vtwm/images/mat-1280x960.xpm" ##JMCRES1680x1050## VirtualBackgroundPixmap "~/.themes_vtwm/images/mat-1680x1050.xpm" TitleHighlight ":xpm:sunkenlines" } # # Functions and Bindings # 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 } # a MAJOR hack Function "jmc_w1" { f.panup "100" f.panup "100" f.panup "100" f.panup "100" f.panup "100" } Function "jmc_w2" { f.function "jmc_w1" f.pandown "100" } Function "jmc_w3" { f.function "jmc_w1" f.pandown "100" f.pandown "100" } Function "jmc_w4" { f.pandown "100" f.pandown "100" f.pandown "100" f.pandown "100" f.pandown "100" } ############################################################################### # Title Button Section Begin # valid: :xpm:bar :xpm:resize # :xpm:dot :xpm:zoom # :xpm:menu :xlogo ############################################################################### LeftTitleButton "lower.xpm" = f.iconify ############################################################################### # Title Button Section END ############################################################################### Button1 = : root : f.menu "TwmWindows" Button2 = : root : f.menu "Mroot_middle_button" Button3 = : root : f.menu "Mroot_right_button" Button1 = : title : f.function "move-or-raise" Button3 = : title : f.menu "Mtitle_menu" Button1 = : frame : f.function "move-or-raise" Button2 = : frame : f.resize Button3 = : frame : f.iconify Button1 = : icon : f.function "move-or-iconify" Button3 = : icon : f.menu "Mtitle_menu" Button1 = : iconmgr : f.iconify Button3 = : iconmgr : f.warp Button1 = : virtual | desktop : f.movescreen ############################################################################### # now some keyboard functions ############################################################################### "Return" = : iconmgr : f.iconify "1" = m : all : f.iconify "2" = m : all : f.zoom "3" = m : all : f.horizoom "4" = m : all : f.fullzoom "r" = m : all : f.restart "q" = m : all : f.delete "Tab" = m : all : f.raiselower "Left" = m : all : f.backiconmgr "Right" = m : all : f.forwiconmgr "Up" = m : all : f.upiconmgr "Down" = m : all : f.downiconmgr "F1" = m : all : f.function "jmc_w1" "F2" = m : all : f.function "jmc_w2" "F3" = m : all : f.function "jmc_w3" "F4" = m : all : f.function "jmc_w4" "Up" = c : all : f.panup "100" "Down" = c : all : f.pandown "100" "Left" = c : all : f.panup "100" "Right" = c : all : f.pandown "100" ############################################################################### # Add Menu ############################################################################### ###ADD_AUTO_RAISE### ###ADD_MENU### # some people do not like this, so can be commented # or changed AutoRaiseDelay 100 AutoRaise #------------------------------------------------------------------------------ # Created by ~/.themes_vtwm/bin/mk_theme_menu.sh #------------------------------------------------------------------------------ Function "Theme_As" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh As" f.restart } Function "Theme_black" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh black" f.restart } Function "Theme_conky" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh conky" f.restart } Function "Theme_jgrid" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh jgrid" f.restart } Function "Theme_matrix" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh matrix" f.restart } Function "Theme_slate" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh slate" f.restart } Function "Theme_std_1" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh std_1" f.restart } Function "Theme_std_2" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh std_2" f.restart } #------------------------------------------------------------------------------ # Created by ~/.themes_vtwm/bin/mk_theme_menu.sh #------------------------------------------------------------------------------ menu "menu_vtwm_themes" { "VTWM Themes" f.title "As" f.function "Theme_As" "black" f.function "Theme_black" "conky" f.function "Theme_conky" "" f.separator "jgrid" f.function "Theme_jgrid" "matrix" f.function "Theme_matrix" "slate" f.function "Theme_slate" "" f.separator "std_1" f.function "Theme_std_1" "std_2" f.function "Theme_std_2" } ############################################################################### # Menus ############################################################################### menu "menu_office" { " Office " f.title "OO Spreadsheet" f.exec "scalc &" "OO Word Processor" f.exec "swriter &" "OO Presentation" f.exec "simpress &" "OO Database" f.exec "sbase &" "OO Math Editor" f.exec "smath &" "OO Draw" f.exec "sdraw &" "OO Printer Admin" f.exec "spadmin &" "Open Office Main" f.exec "soffice &" "" f.separator "Kspread" f.exec "kspread &" "Kword" f.exec "kword &" "Kwrite" f.exec "kwrite &" "Kstars" f.exec "kstars &" } menu "menu_apps" { " Applications " f.title "emacs" f.exec "emacs &" "Office" f.menu "menu_office" "" f.separator "Thunderbird" f.exec "thunderbird &" "Firefox" f.exec "firefox &" "" f.separator "xmms" f.exec "xmms &" "amarok" f.exec "amarok &" "gxine" f.exec "gxine &" "" f.separator "gimp" f.exec "gimp &" "xpaint" f.exec "xpaint &" "xfig" f.exec "xfig -geometry 897x707 &" } menu "menu_wm" { " Others " f.title "Restart vtwm" f.restart "twm" f.startwm "twm" "fvwm2" f.startwm "fvwm2" "KDE" f.startwm "startkde" } menu "menu_utils" { " Utilities " f.title "Edit appointments" f.exec "gvim ~/.rclock &" "File Manager" f.exec "thunar &" "VTWM config" f.exec "gvim ~/.vtwmrc &" "xcalc" f.exec "xcalc &" "" f.separator "wmagnify" f.exec "wmagnify &" "xmag" f.exec "xmag &" "xclipboard" f.exec "xclipboard &" "xbmbrowser" f.exec "xbmbrowser -geometry 550x550 &" "" f.separator "VTWM Themes" f.menu "menu_vtwm_themes" "Other wm" f.menu "menu_wm" "Restart" f.restart "About" f.version } menu "menu_shells" { " Shells " f.title "rxvt" f.exec "rxvt &" "Eterm" f.exec "Eterm -F 10x20 -c lightblue -f cyan --menu-text-color black -S gray --trans --shade 75 --menubar off &" "Xterm" f.exec "xterm &" "rxvt Small" f.exec "rxvt -fn 6x12 -ls -bg snow -fg black &" "xterm Small" f.exec "xterm -fn 6x12 -ls -bg snow -fg black &" } menu "ShowHide" { "Show Iconmamager" f.showiconmgr "Hide Iconmamager" f.hideiconmgr "Show DeskTop" f.showdesktopdisplay "Hide DeskTop" f.hidedesktopdisplay } menu "Zoom" { "Toggle Fullzoom" f.fullzoom "Toggle Horizoom" f.horizoom "Toggle Vertzoom" f.zoom } menu "mod_win" { "move" f.move "togglenail" f.nail "above" f.nailedabove "" f.separator "autoraise" f.autoraise "ring" f.ring "snuggle" f.snugwindow "" f.separator "raise" f.raise "lower" f.lower "" f.separator "^--" f.squeezeleft "-^-" f.squeezecenter "--^" f.squeezeright } menu "Mtitle_menu" { " Window " f.title "" f.separator "Resize" f.resize "togglenail" f.nail "Move" f.move "Iconify" f.iconify "Refresh" f.winrefresh "" f.separator "Identify" f.identify "Modify Win" f.menu "mod_win" "Zoom" f.menu "Zoom" "" f.separator "Delete" f.delete "Destroy" f.destroy } menu "Mroot_middle_button" { " Arrange " f.title "" f.separator "Resize" f.resize "Iconify" f.iconify "Move" f.move "" f.separator "Refresh" f.winrefresh "Identify" f.identify "" f.separator "Modify Window" f.menu "mod_win" "Zoom" f.menu "Zoom" "Show/Hide" f.menu "ShowHide" "" f.separator "Send Delete" f.delete "Kill Window" f.destroy } menu "Mroot_right_button" { " matrix " f.title "Shells" f.menu "menu_shells" "Applications" f.menu "menu_apps" "Utilities" f.menu "menu_utils" "" f.separator "Window Ops" f.menu "Mroot_middle_button" "lock screen" f.exec "xscreensaver-command -lock &" "" f.separator "Exit" f.quit } ##### END : menus