#********************************* # GENERAL SETTINGS #********************************* NoDefaults NoGrabServer #DontMoveOff RandomPlacement NotVirtualGeometries AutoRelativeResize SnapRealScreen FixManagedVirtualGeometries FixTransientVirtualGeometries NoHighlight NoBorderDecorations NoTitleHighlight NoIconManagers IconifyByUnMapping NaturalAutoPanBehavior StayUpMenus WarpVisible #WindowRing OpaqueMove NoWindowRing { "VTWM *" "xclock" } OldFashionedTwmWindowsMenu #SloppyFocus #EnableXftFontRenderer #********************************* # BORDER / BEVEL SETTINGS #********************************* TitlePadding 0 TitleBevelWidth 0 BorderWidth 1 BorderBevelWidth 0 ButtonIndent 0 ButtonBevelWidth 0 TitleButtonBorderWidth 0 InfoBevelWidth 1 VirtualDesktopBevelWidth 0 ClearBevelContrast 10 DarkBevelContrast 10 NoMenuShadows MenuBevelWidth 1 #********************************* # VIRTUAL DESKTOP SETTINGS #********************************* VirtualDesktop "2x2-5-5" 40 PanDistanceX 100 PanDistanceY 100 PanResistance 650 AutoPan 100 #********************************* # FONT SETTINGS #********************************* TitleFont "DejaVuSansMono:size=9" ResizeFont "DejaVuSansMono:size=9" MenuFont "DejaVuSansMono:size=14" MenuTitleFont "DejaVuSansMono:size=14" InfoFont "DejaVuSansMono:size=9" #********************************* # AUTORAISE WINDOWS #********************************* AutoRaise { "VTWM *" "xclock" } NailedDown { "VTWM *" "xclock" "xosview" } #********************************* # NO TITLE BAR SETTINGS #********************************* NoTitle { "VTWM *" "xclock" "xosview" # "runcmd" } #********************************* # DONT SHOW IN PANNER #********************************* DontShowInDisplay { "VTWM *" "xclock" "xosview" } #********************************* # DONT SHOW IN TWM WINDOW LIST #********************************* DontShowInVtwmWindows { "VTWM *" "xclock" "xosview" } #********************************* # COLOR SETTINGS #********************************* Color { DefaultBackground "dimgray" DefaultForeground "gray85" BorderColor "#4E4E4E" TitleBackground "#4E4E4E" TitleForeground "white" MenuBackground "#D6D6D6" MenuForeground "#4E4E4E" MenuShadowColor "gray20" MenuTitleBackground "#4E4E4E" MenuTitleForeground "white" VirtualBackground "dimgray" VirtualForeground "#4E4E4E" DesktopDisplayBorder "#4E4E4E" DesktopDisplayBackground "gray45" DesktopDisplayForeground "gray45" RealScreenBackground "gray45" } #********************************* # CURSOR SETTINGS #********************************* Cursors { Frame "top_left_arrow" Title "top_left_arrow" Icon "top_left_arrow" IconMgr "top_left_arrow" Move "fleur" Resize "fleur" Menu "top_left_arrow" Button "top_left_arrow" #Wait "exchange" Select "dot" Destroy "pirate" } #********************************* # TITLE BAR BUTTONS #********************************* IconDirectory "/home/admin/.twm/" # Directory for non default icons LeftTitleButton "stick.xbm"=f.nail #LeftTitleButton "resize.xbm"=f.resize RightTitleButton "minimize.xbm"=f.iconify RightTitleButton "maximize.xbm"=f.fullzoom RightTitleButton "close.xbm"=f.delete #*************************************************** # MOUSE SETTINGS AND WINDOW BEHAVIOURS #*************************************************** # Button1=left, Button2=middle, Button3=right, m=alt, c=ctrl, s=shift Button1 = : root : f.menu "main" Button2 = : root : f.menu "system" Button3 = : root : f.menu "TwmWindows" # Left click the window title to lower / raise + gain focus or move Movedelta 1 Button1= :title: f.function "raise-lower-move" Function "raise-lower-move" { f.move f.raiselower } # Middle click the window title for options for individual windows Button2 = : title|frame : f.menu "WindowMenu" # Right click window title to resize the window by mousing beyond frame Button3 = : title|frame : f.resize # Hold alt key and left click to move entire window Button1 = m : window : f.move # Hold shift key and right click / move to resize. Best near edges Button3 = s : window : f.resize # Hold Alt and Tab cycles through windows bringing up focus Function "winup" { f.circleup } "Tab" = m : root|window|frame|title : f.function "winup" # Hold Alt plus left click window title to maximize window vertically Button1 = m : title|frame : f.zoom # Hold Alt plus right click window title to maximize window vertically Button3 = m : title|frame : f.horizoom # Move, minimize and warp to windows using panner Button1 = : desktop : f.movescreen Button2 = : desktop : f.iconify Button3= : desktop : f.warp # Resize windows by clicking on frame Button1 = : frame : f.resize DefaultFunction f.nop #********************************* # THE ROOT MENU #********************************* menu "main" { "Fileman" f.exec "xfe &" "Terminal" f.exec "xterm &" "" f.separator "Network" f.menu "network" "" f.separator "Media" f.menu "media" "" f.separator "Graphics" f.menu "graphics" "" f.separator "Utils" f.menu "utils" "" f.separator "Restart" f.restart "Quit" f.quit } menu "WindowMenu" { "Window Ops" f.title "Vertical" f.zoom "Horizontal" f.horizoom "Left" f.leftzoom "Right" f.rightzoom "Top" f.topzoom "Bottom" f.bottomzoom "AutoRaise" f.autoraise "Refresh" f.refresh "Kill" f.destroy } menu "network" { "Network" f.title "Graphic Browser" f.exec "seamonkey &" "Console Browser" f.exec "links -driver x http://www.google.com &" "FTP Client" f.exec "gftp &" #"mcFTP Client" f.exec "xterm -fg grey -bg black -geometry 140x40+200+200 -e mc /#ftp:user@ftp.domain.net &" #"SSH Client" f.exec "xterm -fg grey -bg black -geometry 140x40+200+200 -e mc /#sh:root@192.168.1.1 &" } menu "media" { "Media" f.title "Groove Salad" f.exec "xterm -bg black -title 'MP3 Blaster' -e mp3blaster http://streamer-mtc-aa03.somafm.com:80/stream/1018 &" "Swiss Groove" f.exec "xterm -bg black -title 'MP3 Blaster' -e mp3blaster http://swiss1.impek.tv:80 &" "Create CD" f.exec "xcdroast -n &" "Play DVD" f.exec "/usr/local/bin/mplayer dvd:// &" "Play MP3" f.exec "xterm -fn fixed -e mp3blaster &" "Mixer" f.exec "xterm -geometry 80x20+300+300 -e nmixer &" "Music CD" f.title "Play CD" f.exec "cdcontrol -f /dev/acd1 play &" "Next Track" f.exec "cdcontrol -f /dev/acd1 next &" "Prev Track" f.exec "cdcontrol -f /dev/acd1 previous &" "Pause CD" f.exec "cdcontrol -f /dev/acd1 pause &" "Resume CD" f.exec "cdcontrol -f /dev/acd1 resume &" "Stop CD" f.exec "cdcontrol -f /dev/acd1 stop &" "Eject CD" f.exec "cdcontrol -f /dev/acd1 eject &" } menu "graphics" { "Graphics " f.title "Xv-Editor " f.exec "xv &" "X-Paint " f.exec "xpaint &" "Screenshot " f.exec "xterm -bg black -fg grey -e scrot -d 5 -c -e 'mv $f /usr/home/admin/' &" "Magnifier " f.exec "xmag &" "X-Colours " f.exec "xcolorsel &" "X-Bitmap " f.exec "bitmap &" "X-Cursor " f.exec "xfd -center -fn cursor &" "X-Fonts " f.exec "xfontsel &" } menu "utils" { " Utils " f.title " Top Ps " f.exec "xterm -fg black -bg ghostwhite -e top &" " PDF Docs " f.exec "xpdf &" " Manual " f.exec "xman &" " Calendar " f.exec "xcalendar &" " Calculator " f.exec "xcalc &" " Clipboard " f.exec "xclipboard &" } menu "system" { "System" f.title "Run Task" f.exec "/usr/home/admin/scripts/runcmd &" "End Task" f.exec "xkill &" "Set Beep" f.exec "xset b 100 600 60" "Set Time" f.exec "ntpdate time.uk2.net &" "XosView" f.exec "xosview -font 6x13 -captions -disk -swap -page &" } #********************************* # .xinitrc #********************************* # xv -root -quit blurdot.jpg