######################################################## # # My TWM resource configuration file # charry@charry.org # http://www.charry.org # ######################################################## # This variable indicates that windows with no specified geometry should # be placed in a pseudo-random location instead of having the user drag # out an outline RandomPlacement NoGrabServer RestartPreviousState DecorateTransients TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" # Resize without reaching the edge of the window AutoRelativeResize # This variable indicates that the f.move function should actually # the the window instead of just an outline. OpaqueMove # This variable indicates that border width of a window's frame should be # set to the initial border width of the window, rather than to the value # of the value of BorderWidth #ClientBorderWidth # This variable indicates that window should not have title-bars. #NoTitle Color { BorderColor "slategrey" DefaultBackground "rgb:2/a/9" DefaultForeground "gray85" TitleBackground "rgb:2/a/9" TitleForeground "gray85" MenuBackground "rgb:0/8/f" MenuForeground "rgb:0/2/4" MenuBorderColor "black" MenuTitleBackground "rgb:0/2/4" MenuTitleForeground "rgb:0/8/f" IconBackground "rgb:2/a/9" IconForeground "gray85" IconBorderColor "gray85" IconManagerBackground "rgb:2/a/9" IconManagerForeground "gray85" } AutoRaise{"XTerm"} NoTitle{"xclock" "MPlayer"} # # Define some useful functions for motion-based actions. # MoveDelta 3 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 "LeftClickMenu" Button3 = : root : f.menu "defops" "F1" = : all : f.iconify "F2" = : all : f.raiselower "F4" = m : all : f.delete "F11" = : all : f.fullzoom "F12" = : all : f.warpto "XTerm Icon Manager" "Up" = : iconmgr : f.upiconmgr "Down" = : iconmgr : f.downiconmgr "Left" = : iconmgr : f.lefticonmgr "Right" = : iconmgr : f.righticonmgr "Left" = shift : iconmgr : f.previconmgr "Right" = shift : iconmgr : f.nexticonmgr 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" Button3 = : title : f.lower Button1 = : icon : f.function "move-or-iconify" Button2 = : icon : f.iconify Button1 = : iconmgr : f.iconify Button2 = : iconmgr : f.iconify # This is for the window bar RightTitleButton "/usr/X11R6/include/X11/bitmaps/xm_noenter16" = f.fullzoom RightTitleButton "/usr/X11R6/include/X11/bitmaps/xm_warning" = f.delete # # And a menus with the usual things # menu "defops" { "Twm" f.title "Iconify" f.iconify "Resize" f.resize "Move" f.move "Raise" f.raise "Lower" f.lower "" ("rgb:0/2/4":"rgb:4/b/f") f.nop "Focus" f.focus "Unfocus" f.unfocus "Show Iconmgr" f.showiconmgr "Hide Iconmgr" f.hideiconmgr "" ("rgb:0/2/4":"rgb:4/b/f") f.nop "Xterm" f.exec "exec xterm -fn 7x13 -fg gray -bg black &" "" ("rgb:0/2/4":"rgb:4/b/f") f.nop "Kill" f.destroy "Delete" f.delete "" ("rgb:0/2/4":"rgb:4/b/f") f.nop "Restart" f.restart "Read twmrc" f.twmrc "Exit" f.quit } menu "Game" { "Game" f.title "Sol" f.exec "sol &" "Ataxx" f.exec "gataxx &" "Glines" f.exec "glines &" "Iagno" f.exec "iagno &" "Gnotski" f.exec "gnotski &" "Same-gnome" f.exec "same-gnome &" "Gtali" f.exec "gtali &" "Gnotravex" f.exec "gnotravex &" "BlackJack" f.exec "blackjack &" "Gnect" f.exec "gnect &" "Mahjongg" f.exec "mahjongg &" "GnoMine" f.exec "gnomine &" "Gnobots" f.exec "gnobots2 &" } menu "Tools" { "Handy Tools" f.title "KColorChooser" f.exec "kcolorchooser &" "KuickShow" f.exec "kuickshow &" "KDic" f.exec "kdic &" "GDic" f.exec "gnome-dictionary &" "KHexEdit" f.exec "khexedit &" "Sound Rcdr" f.exec "gnome-sound-recorder &" "Kalarm" f.exec "kalarm &" } # # Menu for left click # menu "LeftClickMenu" { "my menu" f.title "fcitx" f.exec "exec fcitx &" "kill fcitx" f.exec "exec killall fcitx &" "Xterm" f.exec "exec xterm -fn 7x13 -fg gray -bg black &" "GNOME Term" f.exec "gnome-terminal &" "FireFox" f.exec "exec firefox &" "Luma QQ" f.exec "exec ~/bin/LumaQQ/lumaqq &" "Gaim" f.exec "exec gaim &" "Time" f.exec "exec xmessage -timeout 5 `date +\"%F %R:%S [%u]\"` &" "Tools" f.menu "Tools" "Game" f.menu "Game" "Identify" f.identify } IconManagers { "XTerm" "=100x5-10+10" 1 }