比较好用的twm
发表于 : 2008-12-01 16:32
由于TWM默认没有
我们习惯的快捷键
所以把我的TWM配置
放上来,;里面包括
我们常用的快捷键
我们习惯的快捷键
所以把我的TWM配置
放上来,;里面包括
我们常用的快捷键
代码: 全选
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
#ClientBorderWidth 2
BorderWidth 3
ButtonIndent 2
NoHighlight
AutoRelativeResize
#DefaultBackground
FramePadding 0
#ForceIcons
NoRaiseOnMove
OpaqueMove
Zoom 500
randomplacement
#AutoRaise{"f.move"}
# This is for hiding the ugly menubar in windows who dont need em.
#NoTitle
#{
# "x11amp" # x11amp, the winamp lookalike, http://x11amp.ml.org.
# "xlogo" # a must have :)
"xosview"
"xclock"
#}
Color
{
BorderColor "gray85"
DefaultBackground "black"
DefaultForeground "gray85"
TitleBackground "gray40"
TitleForeground "gray10"
MenuBackground "#FFFFFF"
MenuForeground "#123456"
MenuTitleBackground "#123456"
MenuTitleForeground "#698B22"
IconBackground "black"
IconForeground "lightblue"
IconBorderColor "black"
IconManagerBackground "black"
IconManagerForeground "gray85"
PointerForeground "black"
PointerBackground "white"
}
#
# 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 }
#
# Set some useful bindings. Sort of uwm-ish, sort of
# simple-button-ish
#
Button1 = : root : f.menu "LeftClick"
Button2 = : root : f.delete
Button3 = : root : f.menu "window"
Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower
Button3 = : title : f.iconify
Button1 = : icon : f.function "move-or-iconify"
#Button2 = : icon : f.destroy
Button3 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.destroy
Button3 = : iconmgr : f.iconify
"F4" = : window :f.delete
"r" = control: all : f.exec "rxvt&"
"F10"= : all : f.fullzoom
"w" = meta: all : f.exec "firefox-3.0&"
"Tab"= meta: all : f.raiselower
# This is for the window bar
#LeftTitleButton "/usr/X11/include/bitmaps/checkmark.xbm" = f.delete
#LeftTitleButton "/usr/X11R6/include/X11/bitmaps/xm_noenter16" = f.delete
#RightTitleButton "/usr/X11/include/bitmaps/menu12" = f.resize
#
# And a menus with the usual things
#
menu "LeftClick"
{
"TWM" f.title
#"" f.nop
#"Xterm" f.exec "xterm -sl 500 -bg black -fg white -name [email protected] &"
"firefox" f.exec "firefox-3.0&"
"rxvt" f.exec "rxvt &"
"" f.nop
"emacs" f.exec "emacs &"
"" f.nop
"Top" f.exec "xterm -bg black -fg white -e top &"
"" f.nop
"xclock" f.exec "xclock -geometry 90x90-:0+0 &"
}
menu "window"LeftClick
{
"X Windows" f.title
"Kill Window" f.destroy
"" f.nop
"Maximize" f.fullzoom
"Minimize" f.iconify
#"Resize" f.resize
#"Raise" f.raise
#"Lower" f.lower
"" f.nop
#"Focus" f.focus
#"Unfocus" f.unfocus
"Show Iconmgr" f.showiconmgr
"Hide Iconmgr" f.hideiconmgr
"" f.nop
#"Redraw" f.refresh
#"Restart" f.restart
"icewm" f.startwm "icewm"
#"Quit" f.menu "quit"
}
menu "quit"
{
"Really Quit?" f.title
"No" f.nop
"Yes" f.quit
}
#Icons
#{
# "XTerm" "/usr/X11R6/include/X11/bitmaps/Term"
# "x11amp" "/usr/include/X11/bitmaps/xfm_au.xbm"
#}
Cursors
{
Frame "left_ptr"
Title "left_ptr"
Icon "left_ptr"
IconMgr "left_ptr"
Move "fleur"
Resize "fleur"
Menu "hand1"
Button "hand2"
Wait "clock"
Select "dot"
Destroy "pirate"
}