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