-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.twmrc
123 lines (104 loc) · 2.78 KB
/
.twmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# This is Silas S. Brown's .twmrc file
# Where to find history:
# on GitHub at https://github.com/ssb22/config
# and on GitLab at https://gitlab.com/ssb22/config
# and on BitBucket https://bitbucket.org/ssb22/config
# and at https://gitlab.developers.cam.ac.uk/ssb22/config
# and in China: https://gitee.com/ssb22/config
# General characteristics:
AutoRelativeResize
NoRaiseOnMove
OpaqueMove
RestartPreviousState
NoGrabServer
RandomPlacement
IconManagerGeometry "120x10-0+120"
IconifyByUnMapping
DecorateTransients
TitleFont "-*-*-*-r-*-*-*-200-*-*-*-*-*-*"
ResizeFont "-*-*-*-r-*-*-*-200-*-*-*-*-*-*"
MenuFont "-*-*-*-r-*-*-*-200-*-*-*-*-*-*"
IconFont "-*-*-*-r-*-*-*-200-*-*-*-*-*-*"
IconManagerFont "-*-*-*-r-*-*-*-200-*-*-*-*-*-*"
# ######################################################
# The following (from here to the end of the file) was
# modified from the default
# ######################################################
Color
{
BorderColor "slategrey"
DefaultBackground "rgb:1/3/3"
DefaultForeground "yellow"
TitleBackground "rgb:1/3/a" # was 2/a/9 in all cases
TitleForeground "yellow"
MenuBackground "rgb:7/0/0"
MenuForeground "yellow"
# MenuTitleBackground "gray70"
# MenuTitleForeground "rgb:2/a/9"
IconBackground "rgb:7/0/0"
IconForeground "yellow"
IconBorderColor "gray85"
IconManagerBackground "rgb:2/0/9"
IconManagerForeground "yellow"
}
# If all else fails pop up a menu:
DefaultFunction f.menu "RootMenu"
# Syntax for a button definition:
# Button = KEYS : CONTEXT : FUNCTION
# On the root window:
Button1 = : root : f.menu "RootMenu"
#Button2= : root : f.menu "RootMenu"
Button3 = : root : f.menu "OperationsMenu"
# On the title bar or window frame:
Button1 = : title|frame : f.raiselower
Button2 = : title|frame : f.move
Button3 = : title|frame : f.menu "WindowMenu"
# With control or meta on the title bar or window frame:
Button1 = c|m : title|frame : f.zoom
Button2 = c|m : title|frame : f.zoom
Button3 = c|m : title|frame : f.iconify
# Shift-click on the window
Button1 = m : window : f.move
Button1 = m : title|frame : f.move
Button3 = s : window : f.menu "WindowMenu"
Button3 = s : title|frame : f.menu "WindowMenu"
# What's in the menus:
menu "RootMenu"
{
"xterm" !"xterm -ls&"
"xemacs" !"xemacs&"
}
menu "WindowMenu"
{
"Refresh" f.winrefresh
"Zoom" f.zoom
"Iconify" f.iconify
"Move" f.move
"Resize" f.resize
"Front" f.raise
"Back" f.lower
"" f.nop
"Quit" f.delete
}
menu "OperationsMenu"
{
#"Operations" f.title
"Reread .Xresources" !"xrdb -load .Xresources&"
"Window List" f.menu "TwmWindows"
"Show Icon Mgr." f.showiconmgr
"Reread .twmrc" f.twmrc
#"Delete window" f.delete
"Destroy window" f.destroy
"Quit X11" f.quit
"Redisplay Screen" f.refresh
}
NoTitle
{
"xbiff"
"xclock"
}
IconManagerDontShow
{
"xbiff"
"xclock"
}