This repository was archived by the owner on Jun 13, 2021. It is now read-only.
forked from sunaku/wmiirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEXAMPLE.config.yaml
223 lines (204 loc) · 5.22 KB
/
EXAMPLE.config.yaml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#
# High-level wmii configuration.
#
# Ruby code in this file has access
# to a CONFIG constant which contains
# the data in this configuration file.
#
##
# A list of configuration files (partials) to import before
# evaluating this configuration file. Imported partials
# may import other partials, recursively. The contents of
# each successive partial are merged with the previous one.
#
import:
##
# Arbitrary preferences.
#
prefer:
terminal:
browser:
editor:
filer:
##
# Appearance settings.
#
display:
##
# Where to display the horizontal status bar?
#
# Possible choices are "top" and "bottom".
#
bar:
##
# Font to use in all text drawn by wmii.
#
font:
##
# Thickness of client border (measured in pixels).
#
border:
##
# Number of seconds a notice should be displayed.
#
notice:
##
# Color schemes for everything drawn by wmii.
#
# <scheme>: "<text> <background> <border>"
#
# You can find more color schemes here:
#
# http://wmii.suckless.org/themes
#
# Unlike the other parameters in this section, the
# "desktop" parameter only accepts a single color:
#
# desktop: "<color>"
#
color:
desktop:
focus:
normal:
error:
notice:
success:
##
# Settings for columns drawn by wmii.
#
# mode: <the wmii "colmode" setting>
# rule: <the wmii "colrules" setting>
#
column:
##
# Settings for clients handled by wmii.
#
# rule: <the wmii "rules" setting>
#
client:
##
# Status bar applets.
#
# <arbitrary number of levels ...>:
# # you can nest your applet definition as deep as you like!
#
# <name of your status bar applet>:
#
# @<parameter name>: <parameter value>
#
# instances: <Array of hashes, each of which serve as
# a set of arguments for creating multiple
# instances of this status bar applet.>
#
# refresh: <Number of seconds to wait before updating the
# label. To disable automatic refreshing, give
# this parameter a `nil` value by omitting this
# parameter completely or by omitting its value.
#
# DO NOT specify a *zero* value for this parameter;
# doing so will cause massive delays in wmii's event
# stream processing and will make wmii unresponsive!>
#
#
# script: <Ruby code to evaluate in the Wmiirc::Status
# object that corresponds to this definition.>
#
# label: <Ruby code whose result is displayed as the
# content. This code is placed inside a
# label() method in the Wmiirc::Status object
# that corresponds to this definition.>
#
# control:
# action:
# <action name>: <Ruby code to evaluate in the Wmiirc::Status
# object that corresponds to this definition.>
#
# mouse_action:
# <mouse event>: <name of action>
#
# keyboard_action:
# <key sequence>: <name of action>
#
# The horizontal order in which these applets appear on the status
# bar reflects the vertical order in which they are defined below.
#
# Code evaluated inside a Wmiirc::Status object has access to a `refresh`
# method which triggers redrawing of the label of that status bar applet.
#
status:
##
# Interaction settings.
#
control:
##
# Internal scripts.
#
# <action name>: <Ruby code to execute>
#
action:
##
# Event handlers.
#
# <event name>: <Ruby code to execute>
#
# The Ruby code has access to an "argv" variable which
# is a list of arguments that were passed to the event.
#
# Keep in mind that these event handlers block the
# wmiirc event loop---meaning that no new events are
# received and processed until the current one has been
# fully handled. So try to keep them short and quick.
#
# If your event handler needs to perform a
# long-running operation, then be sure to
# wrap that operation inside a Ruby thread.
#
event:
##
# Mapping from X mouse codes to event names.
#
mouse:
##
# Keyboard settings.
#
keyboard:
##
# The wmii "grabmod" setting.
#
grabmod:
##
# Keyboard shortcuts.
#
# <key sequence>: <name of action>
#
# A key sequence may contain ${...} expressions which
# are replaced with the value corresponding to '...' in
# the "control:keyboard" section of this configuration.
#
# For example, if the "control:keyboard" section was:
#
# control:
# keyboard:
# foo: Mod4
# bar: y
#
# and the following key sequence was used:
#
# ${foo}-${bar},${bar}
#
# then after ${...} expression replacement,
# that key sequence would appear like this:
#
# Mod4-y,y
#
keyboard_action:
##
# Arbitrary logic to execute either before or after processing this file. Any
# number of "before" and "after" subsections may be defined within this section.
#
# script:
# - before: <Ruby code to execute before processing this file>
# - after: <Ruby code to execute after processing this file>
# # ...
#
script: