- #
- # $Xorg: system.twmrc,v 1.3 2000/08/17 19:54:08 cpqbld Exp $
- #
- # Default twm configuration file; needs to be kept small to conserve string
- # space in systems whose compilers don't handle medium-sized strings.
- #
- # Sites should tailor this file, providing any extra title buttons, menus, etc.
- # that may be appropriate for their environment. For example, if most of the
- # users were accustomed to uwm, the defaults could be set up not to decorate
- # any windows and to use meta-keys.
- #
- # $XFree86: xc/programs/twm/system.twmrc,v 1.4 2001/01/17 23:45:08 dawes Exp $
- #
- NoGrabServer
- RestartPreviousState
- DecorateTransients
- TitleFont "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*"
- ResizeFont "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*"
- MenuFont "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*"
- IconFont "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*"
- IconManagerFont "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*"
- #ClientBorderWidth
- NoTitleHighlight
- NoMenuShadows
- BorderWidth 1
- ButtonIndent 2
- FramePadding 0
- IconBorderWidth 1
- MenuBorderWidth 1
- TitleButtonBorderWidth 1
- #TitlePadding 8
- #SqueezeTitle
- Color
- {
- BorderColor "gray25"
- BorderTileBackground "gray10"
- BorderTileForeground "gray25"
- DefaultBackground "gray10"
- DefaultForeground "gray25"
- TitleBackground "gray10"
- TitleForeground "gray25"
- MenuBackground "gray10"
- MenuForeground "gray25"
- MenuBorderColor "gray25"
- MenuTitleBackground "gray10"
- MenuTitleForeground "gray25"
- IconBackground "gray10"
- IconForeground "gray25"
- IconBorderColor "gray25"
- IconManagerBackground "gray10"
- IconManagerForeground "gray25"
- IconManagerHighlight "gray25"
- }
- #Color
- #{
- # BorderColor "gray80"
- # BorderTileBackground "gray95"
- # BorderTileForeground "gray80"
- # DefaultBackground "gray95"
- # DefaultForeground "gray80"
- # TitleBackground "gray95"
- # TitleForeground "gray80"
- # MenuBackground "gray95"
- # MenuForeground "gray80"
- # MenuBorderColor "gray80"
- # MenuTitleBackground "gray95"
- # MenuTitleForeground "gray80"
- # IconBackground "gray95"
- # IconForeground "gray80"
- # IconBorderColor "gray80"
- # IconManagerBackground "gray95"
- # IconManagerForeground "gray80"
- # IconManagerHighlight "gray80"
- #}
- #Color
- #{
- # BorderColor "slategrey"
- # DefaultBackground "rgb:2/a/9"
- # DefaultForeground "gray85"
- # TitleBackground "rgb:2/a/9"
- # TitleForeground "gray85"
- # MenuBackground "rgb:2/a/9"
- # MenuForeground "gray85"
- # MenuBorderColor "slategrey"
- # MenuTitleBackground "gray70"
- # MenuTitleForeground "rgb:2/a/9"
- # IconBackground "rgb:2/a/9"
- # IconForeground "gray85"
- # IconBorderColor "gray85"
- # IconManagerBackground "rgb:2/a/9"
- # IconManagerForeground "gray85"
- #}
- #Color
- #{
- #BorderColor "#AEB2C5"
- #BorderColor "white"
- #DefaultBackground "#AEB2C5"
- #DefaultForeground "Black"
- #TitleBackground "#B44D7A"
- #TitleForeground "White"
- #MenuTitleBackground "#B44D7A"
- #MenuTitleForeground "White"
- #MenuBackground "#AEB2C5"
- #MenuForeground "#322E2D"
- #MenuShadowColor "#322E2D"
- #MenuBorderColor "White"
- #IconManagerBackground "#aeb2c5"
- #IconManagerForeground "#322e2d"
- #IconManagerHighlight "322e2d"
- #}
- #
- # 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 "main"
- Button3 = : root : f.menu "windowops"
- 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.raiselower
- Button1 = : icon : f.function "move-or-iconify"
- Button3 = : icon : f.iconify
- Button1 = : iconmgr : f.iconify
- Button3 = : iconmgr : f.iconify
- #
- # And a menus with the usual things
- #
- menu "main"
- {
- "Main Menu" f.title
- "Terminal" f.exec "xterm -bg 'gray10' -fg 'gray50' -fa 'clean-12' &"
- "" f.nop
- "Show Icon Manager" f.showiconmgr
- "Hide Icon Manager" f.hideiconmgr
- "" f.nop
- "Exit" f.menu "Quit-Verify"
- }
- menu "Quit-Verify"
- {
- "Really quit twm?" f.title
- "No, restart twm" f.restart
- "Yes, really quit" f.quit
- }
- menu "windowops"
- {
- "Window Ops" f.title
- "" f.nop
- "Iconify" f.iconify
- "Resize" f.resize
- "V-Max" f.zoom
- "H-Max" f.hzoom
- "F-Max" f.fullzoom
- "Move" f.move
- "Raise" f.raise
- "Lower" f.lower
- "" f.nop
- "Focus" f.focus
- "Unfocus" f.unfocus
- "" f.nop
- "Delete" f.delete
- "Destroy" f.destroy
- }
Posted by aaro on Sat 3rd Dec 18:02 (modification of post by view diff)
download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.