If a reader had hope to find a few more tidbits regarding TWM:
This is the ultimate VL5.9 TWMrc
use "?" on window title for icon manager plus.
use min, max (double click restore), close and resize
left button hold for menu with lock and screenshot
right button hold for preferences with mounts, sys, and wallpaper or use
edit.twmrc to add what you like.
ultimate is relative..if there is something better I eager to see it
http://files.myopera.com/dsl-o/albums/550557/Twm.jpghttp://files.myopera.com/dsl-o/albums/550557/lissie.jpgthis was fun....give it a try
copy/paste to note and save as .twmrc in home directory-login to twm
==========================================================================
# overthere .twmrc 2008.03.05
# for VL based on various .twmrc
LeftTitleButton ":question" = f.menu "popup"
LeftTitleButton ":resize" = f.resize
RightTitleButton ":iconify" = f.iconify
RightTitleButton ":menu" = f.fullzoom
RightTitleButton ":delete" = f.delete
menu "popup"
{
"Options" f.title
"Open" f.menu "TwmWindows"
"----------" f.title
"Close" f.delete
"----------" f.title
"Full Zoom" f.fullzoom
"Move" f.move
"Resize" f.resize
"Lower" f.lower
"Raise" f.raise
"Iconify" f.iconify
"Deiconify" f.deiconify
"Identify" f.identify
"Focus" f.focus
"----------" f.title
"Kill" f.destroy
"----------" f.title
}
BorderWidth 1
ButtonIndent 1
TitleButtonBorderWidth 0
ConstrainedMoveTime 0
DecorateTransients
IconRegion "800x100+0-0" SOUTH WEST 75 25
#IconRegion "200x500+0-250" SOUTH WEST 75 25
OpaqueMove
NoGrabServer
#NoHighlight
#NoIconManagers
NoRaiseOnMove
NoRaiseOnResize
NoSaveUnders
#NoTitleHighlight
#NoTitleFocus
NoVersion
RandomPlacement
#SqueezeTitle
IconManagerFont "-adobe-helvetica-*-r-*-*-*-140-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-*-r-*-*-*-140-*-*-*-*-*-*"
TitleFont "-adobe-helvetica-bold-o-*-*-*-140-*-*-*-*-*-*"
ResizeFont "-adobe-courier-bold-r-*-*-16-100-*-*-*-*-*-*"
MenuFont "-misc-fixed-medium-r-*-*-20-240-*-*-*-*-*-*"
IconFont "-misc-fixed-medium-r-*-*-20-240-*-*-*-*-*-*"
#BorderWidth 2
#ButtonIndent 0
TitleButtonBorderWidth 1
#ConstrainedMoveTime 0
Cursors
{
Button "left_ptr"
Menu "left_ptr"
Title "left_ptr"
Frame "left_ptr"
Icon "left_ptr"
Wait "watch"
Destroy "pirate" }
Color
{
DefaultBackground "blue"
DefaultForeground "gray"
BorderColor "blue"
TitleBackground "gray"
TitleForeground "black"
MenuBackground "black"
MenuForeground "gray"
MenuTitleBackground "slategray"
MenuTitleForeground "black"
IconBackground "black"
IconForeground "gray"
IconBorderColor "blue"
IconManagerBackground "black"
IconManagerForeground "blue"
}
Monochrome
{
BorderColor "white"
MenuBackground "white"
MenuForeground "black"
MenuTitleBackground "white"
MenuTitleForeground "black"
IconManagerHighlight "black"
}
#MoveDelta 3
Function "move-or-raise" {
f.move
f.deltastop
f.raise
}
Function "move-or-raiselower" {
f.move
f.deltastop
f.raiselower
}
Function "move-or-iconify" {
f.move
f.deltastop
f.iconify
}
# REQUIRED...
Function "next-window" {
}
Function "previous-window" {
}
DefaultFunction f.nop
Button1 = : title : f.function "move-or-raiselower"
Button2 = : title : f.menu "Title Menu"
Button3 = : title : f.resize
Button1 = m : window|icon : f.iconify
Button2 = m : window|icon : f.function "move-or-raiselower"
Button3 = m : window|icon : f.resize
Button1 = c : title : f.focus
Button1 = c : root : f.unfocus
Button1 = : root : f.menu "User"
Button2 = : root : f.menu "TWM"
Button3 = : root : f.menu "Preferences"
Button1 = : icon : f.function "move-or-iconify"
"Tab" = m : title|window|icon|root : f.warpring "next"
"w" = m : title|window|icon|root : f.delete
Icons {
"Xmh" "letters" # from IconDirectory
"XTerm" "terminal" # from IconDirectory
}
UnknownIcon "icon"
###########################################################################
menu "User" {
"User" f.title
"lock" f.exec "exec xscreensaver-command -activate &"
"----------" f.title
"Terminal" !"xterm -fn 10x20 -rv -geometry 65x20 -sl 2048 -sb -e bash --login&"
"File Manager" !"thunar &"
"Browser" !"opera &"
"----------" f.title
"Accessories" f.menu "accessories"
"Net" f.menu "Net"
"Media" f.menu "Media"
"Office" f.menu "Office"
"Games" f.menu "Games"
"screenshot" !"import -window root screenshot.png"
"----------" f.title
"logout" f.quit
"----------" f.title
}
menu "accessories" {
"Accessories" f.title
"Medit" !"medit &"
"Mousepad" !"mousepad &"
"Clock" !"xdaliclock &"
"Calc" !"xcalc &"
"Dict" !"stardict &"
"Catfish" !"catfish &"
}
menu "Net" {
"Net" f.title
"Chestnut" !"vsuper chestnut-dialer &"
"Firefox" !"firefox &"
"Opera" !"opera &"
"Seamonkey" f.menu "Submenu"
"Pidgin" !"Pidgin &"
"pyNeighborhood" !"pyNeighborhood &"
"Xchat IRC" !"xchat &"
}
menu "Submenu" {
"Seamonkey" f.title
"Browser" !"seamonkey -browser &"
"mail" !"seamonkey -mail &"
"chat" !"seamonkey -chatzilla &"
"Address Book" !"seamonkey -addressbook &"
}
menu "Media" {
"Media" f.title
"Xmms" !"xmms &"
"Gqview" !"gqview &"
"Xpdf" !"xpdf &"
"Xine" !"xine &"
"ripperX" !"ripperX &"
"K3B" !"k3b &"
"Mplayer" !"gmplayer &"
}
menu "Office" {
"Office" f.title
"Abiword" !"abiword &"
"J-pilot" !"jpilot &"
"Calculator" !"xcalc &"
"Gnumeric" !"gnumeric&"
"Scribus" !"scribus &"
"Xpdf" !"xpdf &"
}
menu "Games" {
"Games" f.title
"pysol" !"pysol &"
"xboard" !"xboard &"
"gnubg" !"xterm gnubg &"
"Empty" !"somegame &"
"Another Submenu" f.menu "The menu"
}
menu "The menu" {
"Name" f.title
"something" !"program &"
"something" !"program &"
"something" !"program &"
}
#########################################################
menu "TWM" {
"TWM" f.title
"Refresh" f.refresh
"Unfocus" f.unfocus
"Show Icon Box" f.showiconmgr
"Hide Icon Box" f.hideiconmgr
"Release Host" ! "xhost +"
"Reclaim Host" ! "xhost -"
"Close" f.delete
"Version" f.version
"Restart" f.restart
"----------" f.title
"Logout" f.quit
}
############################################################
menu "Preferences" {
"Preferences" f.title
"lock prefs" f.exec "exec xscreensaver-command -prefs &"
"----------" f.title
"Mounting" f.menu "Mounting"
"System" f.menu "system"
"Edit.twmrc" !"mousepad .twmrc &"
"----------" f.title
"Screenblank" f.menu "screenblank"
"TWM Rocks" f.menu "TWM Rocks"
"BG Color" f.menu "BG Color"
"Wallpaper" f.menu "Wallpaper"
"----------" f.title
"Logout" f.quit
"----------" f.title
}
menu "TWM Rocks" {
"Saver WP" f.title
"Rocks-ON" !"/usr/libexec/xscreensaver/rocks -root &"
"Rocks-OFF" !"killall rocks & xsetroot -solid black &"
"----------" f.title
"lissie-ON" !"/usr/libexec/xscreensaver/lissie -root &"
"lissie-OFF" !"killall lissie & xsetroot -solid black &"
"----------" f.title
"gears-ON" !"/usr/libexec/xscreensaver/gears -root &"
"gears-OFF" !"killall gears & xsetroot -solid black &"
}
menu "BG Color" {
"BG Color" f.title
"Black" !"xsetroot -solid black &"
"Gray" !"xsetroot -gray &"
"Slategray" !"xsetroot -solid slategray &"
"Blue" !"xsetroot -solid navyblue &"
}
menu "Wallpaper" {
"Wallpaper" f.title
"Rain-on-table" ! "display -window root /usr/share/wallpapers/rain-on-table.jpg &"
"VL-rockface" ! "display -window root /usr/share/wallpapers/VL-rockface.jpg &"
"EOS" ! "display -window root /usr/share/wallpapers/eos.jpg &"
"ClawingV" ! "display -window root /usr/share/wallpapers/ClawingV.jpg &"
"Red-leaf" ! "display -window root /usr/share/wallpapers/red-leaf.jpg &"
"summer" ! "display -window root /usr/share/wallpapers/summer.jpg &"
"fresh-morning" ! "display -window root /usr/share/wallpapers/fresh-morning.jpg &"
}
menu "screenblank" {
"screenblank" f.title
"Screen Blank OFF"!"xset -dpms & xset s off &"
"Screen Blank ON" !"xset -dpms & xset s on &"
}
menu "system" {
"system" f.title
"Gslapt" !"vsuper gslapt &"
"Htop" !"xterm -e htop &"
"Thunar root" !"vsuper thunar &"
"vasmCC" !"vsuper vasmCC &"
}
menu "Mounting" {
"Mount drives" f.title
"Mount Cdrom" !" mount /dev/cdrom & thunar /mnt &"
"Umount Cdrom" !" umount /dev/cdrom &"
"-------------" f.title
"Mount Floppy" !"mount /dev/fd0 & thunar /mnt &"
"Umount floppy" !"umount /dev/fd0 &"
"-------------" f.title
"view vlhot" !"thunar /mnt/vl-hot &"
"umount USB" !"vlh-umount &"
}
menu "Title Menu" {
"Lower" f.lower
"Raise" f.raise
"Resize" f.resize
"Move" f.move
"Iconify" f.iconify
"Identify" f.identify
"Focus" f.focus
"Kill" f.destroy
"Dismiss" f.delete
}
=============================================================================