dotfiles/x11/twmrc

171 lines
4.6 KiB
Plaintext
Raw Normal View History

2022-05-08 02:08:30 -04:00
#Icon Manager
ShowIconManager
IconifyByUnmapping
NoGrabServer
RestartPreviousState
DecorateTransients
NoDefaults
# Fonts
TitleFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
#ResizeFont "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
#IconFont "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-medium-r-normal--*-80-*-*-*"
NoTitle {
"xclock"
"xload"
"xbiff"
"TWM Icon Manager"
}
IconManagerDontShow {
"xclock"
"xload"
"xbiff"
}
Icons {
"chromium" "chromium.xbm"
}
Color {
BorderColor "#303639"
DefaultBackground "White"
DefaultForeground "Black"
TitleBackground "Firebrick"
TitleForeground "White"
MenuTitleBackground "Firebrick"
MenuTitleForeground "White"
MenuBackground "#FFFFFF"
MenuForeground "#303639"
MenuShadowColor "#303639"
MenuBorderColor "#303639"
}
# xv ~/.twm/walls/reduxbg.jpg -root -quit
# Settings effecting window borders etc ------------------------------------------
BorderWidth 1 # Number of pixels for border around entire window
FramePadding 1 # Number of pixels between titlebar buttons & frame
TitleButtonBorderWidth 0 # Number of pixels for button border
TitlePadding 2 # Number of pixels around title buttons
ButtonIndent 0 # Larger seems to squash buttons together
MenuBorderWidth 1 # Number of pixels for menu border
NoMenuShadows # No shadow behind the menu
# Title bar buttons
IconDirectory "/home/jchenry/.twm/icons" # Directory for non default icons
LeftTitleButton "close.xbm"=f.delete
LeftTitleButton "minimize2.xbm"=f.iconify
LeftTitleButton "maximize2.xbm"=f.fullzoom
RightTitleButton "resize2.xbm"=f.resize
# -------------------------------------------------------------------------------
# Mouse settings and Window beahviours ------------------------------------------
#
# Button1=left, Button2=middle, Button3=right, m=alt, c=ctrl, s=shift
# The root window actions i.e. clicking on the backgound
Button1 = : root : f.menu "RootMenu"
Button2 = : root : f.menu "TWMWindows"
Button3 = : root : f.menu "System"
# Left click the window title to lower / raise + gain focus or move
Movedelta 1
Button1 = : title : f.function "raise-lower-move"
Function "raise-lower-move" { f.move f.raiselower }
# Middle click the window title for options for individual windows
Button2 = : title|frame : f.menu "WindowMenu"
# Right click window title to resize the window by mousing beyond frame
Button3 = : title|frame : f.resize
# Hold alt key and left click to move entire window
Button1 = m : window : f.move
# Hold shift key and right click / move to resize. Best near edges than centre.
Button3 = s : window : f.resize
# Hold Alt and Tab cycles through windows bringing up focus
Function "winup" { f.circleup }
"Tab" = m : root|window|frame|title : f.function "winup"
# Hold Alt plus left click window title to maximize window vertically
Button1 = m : title|frame : f.zoom
# Hold Alt plus right click window title to maximize window horizontally
Button3 = m : title|frame : f.horizoom
Button1 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
DefaultFunction f.nop
# -------------------------------------------------------------------------------
#
# And a menus with the usual things
#
menu "RootMenu"
{
"Twm" f.title
#"" f.nop
#"terminal" f.exec "xterm -sl 255 -bg black -fg white &"
#"terminal" f.exec "st&"
"browser" f.exec "chromium&"
"code" f.exec "code&"
"notes" f.exec "tusk&"
"music" f.exec "spotify -name Spotify&"
"chat" f.exec "slack&"
}
menu "System" {
"X Windows" f.title
"Kill" f.destroy
"Delete" f.delete
"" f.nop
"Show Iconmgr" f.showiconmgr
"Hide Iconmgr" f.hideiconmgr
"" f.nop
"Lock" f.exec "slock&"
"Redraw" f.refresh
"Restart" f.restart
"Quit" f.menu "quit"
}
menu "quit" {
"Really Quit?" f.title
"No" f.nop
"Yes" f.quit
}
#Button1 = : root : f.menu "TwmWindows"
#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