#********************************************************************** # # vtwm Slate # #********************************************************************** #------------------------------------------------------------------------------ # Path -- seems only one path statement is allowed #------------------------------------------------------------------------------ IconDirectory "~/.themes_vtwm/images" ############################################################################ # Font Section ############################################################################ 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-*-*-*-*-*-*" 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-o-normal--*-80-*-*-*-*-*-*" ############################################################################ # Variables Section ############################################################################ # # Boolean Variables # NoGrabServer RestartPreviousState DecorateTransients AutoRelativeResize OpaqueMove ForceIcons # Override Client Icons NoHighlight NoRaiseOnMove RandomPlacement OldFashionedTwmWindowsMenu StayUpOptionalMenus RightHandSidePulldownMenus StrictIconManager NotVirtualGeometries FixTransientVirtualGeometries StaticIconPositions NoDefaultTitleButtons BorderBevelWidth 1 # 3d Borders, needed for bug #NoDefaults #DefaultBackground #ShowIconManager # Show icon manager on startup #PrettyZoom #ZoomZoom #Zoom 1100 FixManagedVirtualGeometries # corrects window placement in panner ButtonIndent -1 # Fixes Buttons for 4.7 TitleButtonBorderWidth 0 # Fixes Buttons for 4.7 ##JMCRESOTHERS##IconRegion "826x600+0-0" West South 75 25 ##JMCRES1024x768##IconRegion "168x644+0+70" north west 300 60 IconRegion "168x644+0+70" north west 300 60 ##JMCRES1680x1050##IconRegion "168x644+0+70" north west 300 60 # # Numeric Variables # BorderWidth 3 ButtonIndent 2 FramePadding 0 AutoPan 10 PanResistance 100 VirtualDesktop "2x2-0-0" 20 #ClientBorderWidth 2 # # Complex Variables # SqueezeTitle { } IconManagerGeometry "102x20-0+0" 1 # on Top IconManagers { "xmms" "xmms" "450x5+0+0" 1 "Audacious" "Audacious" "450x5+0+0" 1 "gxine" "gxine" "450x5+0+0" 1 } Function "VTWM Profile" { f.exec "~/.themes_vtwm/bin/get_vtwm_theme.sh KILL" f.exec "xsetroot -solid slategrey &" f.exec "rclock -fg black -bg slategrey -geometry '57x49-0+0' &" } IconifyByUnmapping { "xmms" "gxine" } DontShowInTwmWindows { "VTWM Icon Manager" "VTWM Desktop" "asclock" "astime" "emiclock" "gkrellm" "oclock" "swisswatch" "xdaliclock" "Dali Clock" "xbiff" "[Xx]message*" "xclock" "xvclock" "daliclock" "xdaliclock" "xeyes" "xload" "bubblefishymon" "lavaps" "wmmemmon" "wmitime" "wmcpuload" "wmWeather" } DontShowInVtwmWindows { "VTWM Icon Manager" "VTWM Desktop" "asclock" "astime" "emiclock" "gkrellm" "oclock" "swisswatch" "xdaliclock" "Dali Clock" "xbiff" "[Xx]message*" "xclock" "xvclock" "daliclock" "xdaliclock" "xeyes" "xload" "bubblefishymon" "lavaps" "wmmemmon" "wmitime" "wmcpuload" "wmWeather" } NailedDown { "VTWM*" "VTWM Icon Manager" "VTWM Desktop" "Appointment" "asclock" "astime" "emiclock" "gkrellm" "mailtool" "oclock" "rclock" "asapm" "swisswatch" "xbiff" "[Xx]message*" "xeyes" "xclock" "xvclock" "xdaliclock" "xconsole" "xload" "bubblefishymon" "lavaps" "xmailbox" "xneko" "gnomecal" # Calendar "Calendar" # Calendar "Information" # gnomecal "wmmemmon" "wmitime" "wmcpuload" "wmWeather" } DontShowInDisplay { "VTWM*" "VTWM Icon Manager" "VTWM Desktop" "asclock" "astime" "emiclock" "gkrellm" "oclock" "rclock" "asapm" "swisswatch" "xbiff" "xconsole" "xeyes" "xclock" "xvclock" "xdaliclock" "xload" "bubblefishymon" "lavaps" "xneko" "xmailbox" "wmmemmon" "wmitime" "wmcpuload" "wmWeather" } IconManagerDontShow { "Calendar" "VTWM Desktop" "VTWM Icon Manager" "VTWM*" "asclock" "astime" "bubblefishymon" "emiclock" "gkrellm" "gnomecal" "lavaps" "oclock" "swisswatch" "user_popup" # xbmbrowser "wmWeather" "wmcpuload" "wmitime" "wmmemmon" "xbiff" "xclock" "xdaliclock" "xeyes" "xload" "xmailbox" "xneko" "xvclock" } NoBorder { "rclock" "asapm" } NoTitle { "TWM Icon Manager" "VTWM Desktop" "VTWM Icon Manager" "VTWM*" "asclock" "astime" "bubblefishymon" "emiclock" "gkrellm" "lavaps" "oclock" "rclock" "asapm" "swisswatch" "user_popup" # xbmbrowser "wmWeather" "wmcpuload" "wmitime" "wmmemmon" "xbiff" "xclock" "xdaliclock" "xeyes" "xload" "xmailbox" "xmms Icon Manager" "gxine Icon Manager" "xneko" "xvclock" "xmms" "gxine" } Color { DefaultBackground "white" DefaultForeground "black" MenuBackground "LightSteelBlue" MenuForeground "Black" MenuShadowColor "black" MenuTitleForeground "Black" MenuTitleBackground "white" BorderColor "lightslategray" BorderTileForeground "black" BorderTileBackground "white" IconBackground "slategrey" IconBorderColor "slategrey" IconForeground "black" IconManagerBackground "LightSteelBlue" IconManagerForeGround "Black" IconManagerHighlight "Black" TitleBackground "LightSteelBlue" TitleForeground "Black" # VTWM Simple Color RealScreenBackground "ivory2" # "orange" RealScreenForeground "ivory1" # "yellow" VirtualBackground "slategrey" VirtualForeground "red" # VTWM Complex Color DesktopDisplayBackground "White" { # color of windows in virtual desktop windows and in iconmanager "emacs" "LightSteelBlue" "gvim" "LightSteelBlue" "XTerm" "LightSteelBlue" "rxvt" "LightSteelBlue" } DesktopDisplayBorder "black" DesktopDisplayForeground "black" DoorBackGround "ivory2" # "orange" DoorForeGround "black" } ############################################################################### # 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 } Function "icon-refresh" { f.iconify f.refresh} # f.refresh needed for Zoom # # Set some useful bindings. Sort of uwm-ish, sort of # simple-button-ish # Button1 = : root : f.menu "TwmWindows" Button2 = : root : f.menu "Mroot_middle_button" Button3 = : root : f.menu "Mroot_right_button" Button1 = m : window|icon : f.function "move-or-lower" Button2 = m : window|icon : f.iconify # f.function "icon-refresh" Button3 = m : window|icon : f.function "move-or-raise" Button1 = : title : f.function "move-or-raise" Button2 = : title : f.fullzoom Button3 = : title : f.menu "Mtitle_menu" Button1 = : icon : f.function "move-or-iconify" #Button2 = : icon : f.destroy Button3 = : icon : f.iconify # f.function "icon-refresh" Button1 = : iconmgr : f.iconify # f.function "icon-refresh" Button2 = : iconmgr : f.destroy Button3 = : iconmgr : f.iconify # f.function "icon-refresh" # This is for the window bar LeftTitleButton ":iconify" = f.iconify # f.function "icon-refresh" RightTitleButton ":xlogo" = f.delete RightTitleButton ":resize" = f.resize # a hack but works Function "jmc_w1" { f.panup "100" f.panup "100" f.panleft "100" f.panleft "100" } Function "jmc_w2" { f.panup "100" f.panup "100" f.panright "100" f.panright "100" } Function "jmc_w3" { f.pandown "100" f.pandown "100" f.panleft "100" f.panleft "100" } Function "jmc_w4" { f.panright "100" f.panright "100" f.pandown "100" f.pandown "100" } ############################################################################### # Cursors ############################################################################### Cursors { Frame "left_ptr" Title "left_ptr" Icon "left_ptr" IconMgr "left_ptr" Move "fleur" Resize "fleur" Menu "right_ptr" # hand1 Button "hand2" Wait "clock" Select "dot" Destroy "pirate" } ############################################################################### # now some keyboard functions ############################################################################### "Tab" = m : all : f.lower "r" = m : all : f.restart "1" = m : all : f.iconify # f.function "icon-refresh" "2" = m : all : f.zoom "q" = m : all : f.delete "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" ############################################################################### # Add Menu ############################################################################### ###ADD_AUTO_RAISE### ###ADD_ICONS### ###ADD_MENU### # some people do not like this, so can be commented # or changed AutoRaiseDelay 100 AutoRaise UnknownIcon "oicon.xbm" Icons { "Xjewel" "tetris2.xbm" "Gnometris" "tetris.xbm" "Brush Selection" "paint2.xbm" "Color Palette" "palette2.xbm" "GVim" "edit.xbm" "Gradient Selection" "grainy.xbm" "Indexed Color Palette" "palette2.xbm" "Load Image" "pic_frame.xbm" "Mozilla-bin" "network.xbm" "New Image" "pic_frame.xbm" "Pattern Selection" "pattern1.xbm" "Save Image" "pic_frame.xbm" "Screen Shot" "terminal_say.xbm" "Send to Mail" "mail_open.xbm" "The GIMP" "palette2.xbm" "The Gimp" "palette2.xbm" "VTWM Desktop" "odesk.xbm" "XGammon-Buttons" "autocad.xbm" "XTerm" "Term" "abiword" "words.xbm" "emacs" "emacs.xbm" "gnome-calculator" "calculator.xbm" "gnome-cd" "cd_caddy.xbm" "gnome-dictionary" "webster_dict.xbm" "gnomecal" "calendar.xbm" "gnumeric" "sc.xbm" "gvim" "edit.xbm" "image_window" "pic_frame.xbm" "kmail" "mail_new.xbm" "konqueror" "filing.xbm" "kspread" "sc.xbm" "kstars" "galaxy.xbm" "kword" "words.xbm" "navigator:browser" "netscape.xbm" "netscape" "netscape.xbm" "print" "printer.xbm" "virtualDesktop" "odesk.xbm" "x11amp" "xfm_au.xbm" "xmahjongg" "chip.xbm" "xpaint" "palette.xbm" } #------------------------------------------------------------------------------ # 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" { " slate " 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