Files
provision/config/twm/system.twmrc
T
2026-01-22 20:54:36 -08:00

154 lines
4.3 KiB
Plaintext

#
# 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.
#
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-*-*-*"
#ClientBorderWidth
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"
}
#
# 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"
Button2 = : 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"
Button2 = : title : f.raiselower
Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify
#
# And a menus with the usual things
#
menu "main"
{
"Main Menu" f.title
"Debian" f.menu "/Debian"
"" 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
"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
}
# Automatically generated file. Do not edit (see /usr/share/doc/menu/html/index.html)
menu "/Debian/Applications/Network/Web Browsing"
{
"Lynx" f.exec "x-terminal-emulator -T \"Lynx\" -e sh -c \"lynx\" &"
}
menu "/Debian/Applications/Network"
{
"Web Browsing" f.menu "/Debian/Applications/Network/Web Browsing"
}
menu "/Debian/Applications/Science/Mathematics"
{
"Bc" f.exec "x-terminal-emulator -T \"Bc\" -e sh -c \"/usr/bin/bc\" &"
}
menu "/Debian/Applications/Science"
{
"Mathematics" f.menu "/Debian/Applications/Science/Mathematics"
}
menu "/Debian/Applications/Shells"
{
"Bash" f.exec "x-terminal-emulator -T \"Bash\" -e sh -c \"/bin/bash --login\" &"
"Dash" f.exec "x-terminal-emulator -T \"Dash\" -e sh -c \"/bin/dash -i\" &"
"Sh" f.exec "x-terminal-emulator -T \"Sh\" -e sh -c \"/bin/sh --login\" &"
}
menu "/Debian/Applications/System/Administration"
{
"Debian Task selector" f.exec "x-terminal-emulator -T \"Debian Task selector\" -e sh -c \"su-to-root -c tasksel\" &"
"Debian Task selector for pure blends" f.exec "x-terminal-emulator -T \"Debian Task selector for pure blends\" -e sh -c \"su-to-root -c blendsel\" &"
}
menu "/Debian/Applications/System"
{
"Administration" f.menu "/Debian/Applications/System/Administration"
}
menu "/Debian/Applications"
{
"Network" f.menu "/Debian/Applications/Network"
"Science" f.menu "/Debian/Applications/Science"
"Shells" f.menu "/Debian/Applications/Shells"
"System" f.menu "/Debian/Applications/System"
}
menu "/Debian/Window Managers"
{
"Twm" f.startwm "twm"
}
menu "/Debian"
{
"Applications" f.menu "/Debian/Applications"
"Window Managers" f.menu "/Debian/Window Managers"
}