-
Notifications
You must be signed in to change notification settings - Fork 0
/
.twmrc
123 lines (109 loc) · 3.31 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
#**********************************************************************
#
# .twmrc
#
#**********************************************************************
# ~/.vnc/xstartup should look something like this:
#
#!/bin/sh
# [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
# xsetroot -solid '#010104'
# vncconfig -nowin &
# twm &
TitleFont "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1"
MenuFont "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1"
IconFont "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1"
ResizeFont "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1"
IconmanagerFont "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1"
# Put icons in the right 1/3 and bottom 1/2 of the screen
#define(IRegion, translit(eval(WIDTH/3)*eval(HEIGHT/2)+eval(WIDTH-WIDTH/3)-0, *, x))
#IconRegion "IRegion" SOUTH EAST 75 25
NoIconManagers
# Use previous geometry when deiconifing.
DeiconifyToScreen
# Focus with mouses.
SloppyFocus
AutoRaise
AutoRaiseDelay 100
Cursors
{
Button "left_ptr"
IconMgr "left_ptr"
Menu "left_ptr"
Title "left_ptr"
Frame "crosshair"
Icon "crosshair"
Resize "crosshair"
Select "crosshair"
Wait "clock"
Destroy "pirate"
}
Color
{
BorderColor "DodgerBlue"
TitleBackground "black"
TitleForeground "green"
MenuBackground "palegoldenrod"
MenuForeground "black"
MenuTitleBackground "DodgerBlue"
MenuTitleForeground "white"
IconBackground "#fffff0"
IconForeground "black"
IconBorderColor "black"
IconManagerBackground "pale turquoise"
IconManagerForeground "navy"
}
# Key bindings
DefaultFunction f.nop
Function "move-or-raise" { f.move f.deltastop f.raise }
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.zoom
Button3 = : title : f.menu "Title Menu"
Button3 = c m : title : f.destroy
Button1 = : root : f.menu "TwmWindows"
Button2 = : root : f.nop
Button3 = : root : f.menu "System"
# Alt+Tab cycles through windows.
Function "winup" { f.circledown }
"Tab" = m : root|window|frame|title : f.function "winup"
# Don't allow windows to go off the edge of the screen.
DontMoveOff
menu "System"
{
"" f.nop
"GVim" !"~/bin/vim -g &"
"Xterm" !"xterm -sb -rightbar -bd white -bw 2 &"
"Konsole" !"konsole &"
"Firefox" !"firefox &"
"Eyes" !"xeyes &"
"Windows" f.title
"Lower" f.lower
"Raise" f.raise
"Resize" f.resize
"Move" f.move
"Deiconify" f.deiconify
"Iconify" f.iconify
"Identify" f.identify
"Focus" f.focus
"Kill" f.destroy
"TWM" f.title
"Refresh" f.refresh
"Unfocus" f.unfocus
"Show Icon Box" f.showiconmgr
"Hide Icon Box" f.hideiconmgr
}
menu "Title Menu"
{
"" f.nop
"Move" f.move
"Top zoom" f.topzoom
"Bottom zoom" f.bottomzoom
"Left zoom" f.leftzoom
"Right zoom" f.rightzoom
"Full zoom" f.fullzoom
"Iconify" f.iconify
"Identify" f.identify
"Delete" f.delete
"" f.nop
"Kill" f.destroy
}