Merged 0.7.99 irssi.
[silc.git] / apps / irssi / silc.conf
1 servers = (
2   { address = "silc.silcnet.org"; chatnet = SILCNet; port = 706; },
3   { address = "silc.ytti.fi"; chatnet = SILCNet; port = 706; },
4   { address = "silc.peelo.com"; chatnet = SILCNet; port = 706; },
5   { address = "silc.silcnet.org"; chatnet = SILCNet; port = 707; }
6 );
7
8 chatnets = {
9   SILCNet = { type = "SILC"; };
10 };
11
12 channels = (
13   { name = "#silc"; chatnet = silcnet; autojoin = No; }
14 );
15
16 aliases = {
17   JOIN = "join -window";
18   QUERY = "query -window";
19   LEAVE = "part";
20   BYE = "quit";
21   EXIT = "quit";
22   SIGNOFF = "quit";
23   DESCRIBE = "action";
24   DATE = "time";
25   HOST = "userhost";
26   LAST = "lastlog";
27   SAY = "msg *";
28   WHO = "users *";
29   WI = "whois";
30   WII = "whois $0 $0";
31   WW = "whowas";
32   W = "who";
33   N = "names";
34   M = "msg";
35   T = "topic";
36   C = "clear";
37   CL = "clear";
38   K = "kick";
39   KB = "kickban";
40   KN = "knockout";
41   BANS = "ban";
42   B = "ban";
43   MUB = "unban *";
44   UB = "unban";
45   IG = "ignore";
46   UNIG = "unignore";
47   SB = "scrollback";
48   WC = "window close";
49   WN = "window new hide";
50   GOTO = "sb goto";
51   CHAT = "dcc chat";
52   ADMIN = "info";
53   RUN = "SCRIPT LOAD";
54   UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'";
55   CALC = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi";
56 };
57
58 statusbar = {
59   # formats:
60   # when using {templates}, the template is shown only if it's argument isn't
61   # empty unless no argument is given. for example {sb} is printed always,
62   # but {sb $T} is printed only if $T isn't empty.
63
64   items = {
65     # start/end text in statusbars
66     barstart = "{sbstart}";
67     barend = "{sbend}";
68
69     # treated "normally", you could change the time/user name to whatever
70     time = "{sb $Z}";
71     user = "{sb $cumode$N{sbmode $usermode}{sbaway $A}}";
72     topic = " $topic";
73
74     # treated specially .. window is printed with non-empty windows,
75     # window_empty is printed with empty windows
76     window = "{sb $winref:$T{sbmode $M}}";
77     window_empty = "{sb $winref{sbservertag $tag}}";
78     prompt = "{prompt $[.15]T}";
79     prompt_empty = "{prompt $winname}";
80
81     # all of these treated specially, they're only displayed when needed
82     lag = "{sb Lag: $0-}";
83     act = "{sb Act: $0-}";
84     more = "-- more --";
85   };
86
87   # there's two type of statusbars. root statusbars are either at the top
88   # of the screen or at the bottom of the screen. window statusbars are at
89   # the top/bottom of each split window in screen.
90   default = {
91     # the "default statusbar" to be displayed at the bottom of the window.
92     # contains all the normal items.
93     window = {
94       # window, root
95       type = "window";
96       # top, bottom
97       placement = "bottom";
98       # number
99       position = "1";
100       # active, inactive, always, never (disables the statusbar)
101       visible = "active";
102
103       # list of items in statusbar in the display order
104       items = {
105         barstart = { priority = "100"; };
106         time = { };
107         user = { };
108         window = { };
109         window_empty = { };
110         lag = { priority = "-1"; };
111         act = { priority = "10"; };
112         more = { priority = "-1"; alignment = "right"; };
113         barend = { priority = "100"; alignment = "right"; };
114       };
115     };
116
117     # statusbar to use in inactive split windows
118     window_inact = {
119       type = "window";
120       placement = "bottom";
121       position = "1";
122       visible = "inactive";
123       items = {
124         barstart = { priority = "100"; };
125         window = { };
126         window_empty = { };
127         more = { priority = "-1"; alignment = "right"; };
128         barend = { priority = "100"; alignment = "right"; };
129       };
130     };
131
132     # we treat input line as yet another statusbar :) It's possible to
133     # add other items before or after the input line item.
134     prompt = {
135       type = "root";
136       placement = "bottom";
137       # we want to be at the bottom always
138       position = "100";
139       visible = "always";
140       items = {
141         prompt = { priority = "-1"; };
142         prompt_empty = { priority = "-1"; };
143         # treated specially, this is the real input line.
144         input = { priority = "10"; };
145       };
146     };
147
148     # topicbar
149     topic = {
150       type = "root";
151       placement = "top";
152       position = "1";
153       visible = "always";
154       items = {
155         barstart = { priority = "100"; };
156         topic = { };
157         barend = { priority = "100"; alignment = "right"; };
158       };
159     };
160   };
161 };
162
163 settings = {
164   "fe-common/core" = {
165     autocreate_own_query = "no";
166     use_status_window = "no";
167     autoclose_windows = "no";
168     use_msgs_window = "no";
169     autocreate_windows = "no";
170     autocreate_query_level = "none";
171   };
172   "fe-text" = { indent = "8"; };
173 };