Irssi config

dc14edee49eeca26a9f61af9bf6bca5a2141030d
Alexis Sellier committed ago 1 parent 984efcc3
.irssi/config added +297 -0
1 +
servers = (
2 +
  {
3 +
    address = "chat.freenode.net";
4 +
    chatnet = "Freenode";
5 +
    port = "6667";
6 +
    use_ssl = "no";
7 +
    ssl_verify = "no";
8 +
    autoconnect = "yes";
9 +
  },
10 +
  { address = "irc.oftc.net"; chatnet = "OFTC"; port = "6667"; autoconnect = "yes" },
11 +
);
12 +
13 +
chatnets = {
14 +
  EFNet = { 
15 +
    type = "IRC";
16 +
    max_kicks = "1";
17 +
    max_msgs = "4";
18 +
    max_whois = "1";
19 +
  };
20 +
  Freenode = {
21 +
    type = "IRC";
22 +
    max_kicks = "1";
23 +
    max_msgs = "4";
24 +
    max_whois = "1";
25 +
  };
26 +
  OFTC = { type = "IRC"; max_kicks = "1"; max_msgs = "1"; max_whois = "1"; };
27 +
};
28 +
29 +
channels = (
30 +
  { name = "#suckless"; chatnet = "OFTC"; autojoin = "yes"; },
31 +
  { name = "#haskell"; chatnet = "freenode"; autojoin = "yes"; },
32 +
  { name = "#haskell-game"; chatnet = "freenode"; autojoin = "yes"; },
33 +
  { name = "#neovim"; chatnet = "freenode"; autojoin = "yes"; },
34 +
  { name = "#elliottcable"; chatnet = "freenode"; autojoin = "yes"; }
35 +
);
36 +
37 +
aliases = {
38 +
  ATAG = "WINDOW SERVER";
39 +
  ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
40 +
  B = "BAN";
41 +
  BACK = "AWAY";
42 +
  BANS = "BAN";
43 +
  BYE = "QUIT";
44 +
  C = "CLEAR";
45 +
  CALC = "EXEC - if command -v bc >/dev/null 2>&1\\; then printf '%s=' '$*'\\; echo '$*' | bc -l\\; else echo bc was not found\\; fi";
46 +
  CHAT = "DCC CHAT";
47 +
  CUBES = "SCRIPT EXEC Irssi::active_win->print(\"%_bases\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { join '', map { \"%x0\\${_}0\\$_\" } '0'..'9','A'..'F' }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print(\"%_cubes\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { my \\$y = \\$_*6 \\; join '', map { my \\$x = \\$_ \\; map { \"%x\\$x\\$_\\$x\\$_\" } @{['0'..'9','A'..'Z']}[\\$y .. \\$y+5] } 1..6 }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) for 0..5 \\; Irssi::active_win->print(\"%_grays\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { join '', map { \"%x7\\${_}7\\$_\" } 'A'..'X' }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print(\"%_mIRC extended colours\", MSGLEVEL_CLIENTCRAP) \\; my \\$x \\; \\$x .= sprintf \"\00399,%02d%02d\",\\$_,\\$_ for 0..15 \\; Irssi::active_win->print(\\$x, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; for my \\$z (0..6) { my \\$x \\; \\$x .= sprintf \"\00399,%02d%02d\",\\$_,\\$_ for 16+(\\$z*12)..16+(\\$z*12)+11 \\; Irssi::active_win->print(\\$x, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) }";
48 +
  DATE = "TIME";
49 +
  DEHIGHLIGHT = "DEHILIGHT";
50 +
  DESCRIBE = "ACTION";
51 +
  DHL = "DEHILIGHT";
52 +
  EXEMPTLIST = "MODE $C +e";
53 +
  EXIT = "QUIT";
54 +
  GOTO = "SCROLLBACK GOTO";
55 +
  HIGHLIGHT = "HILIGHT";
56 +
  HL = "HILIGHT";
57 +
  HOST = "USERHOST";
58 +
  INVITELIST = "MODE $C +I";
59 +
  J = "JOIN";
60 +
  K = "KICK";
61 +
  KB = "KICKBAN";
62 +
  KN = "KNOCKOUT";
63 +
  LAST = "LASTLOG";
64 +
  LEAVE = "PART";
65 +
  M = "MSG";
66 +
  MUB = "UNBAN *";
67 +
  N = "NAMES";
68 +
  NMSG = "^MSG";
69 +
  P = "PART";
70 +
  Q = "QUERY";
71 +
  RESET = "SET -default";
72 +
  RUN = "SCRIPT LOAD";
73 +
  SAY = "MSG *";
74 +
  SB = "SCROLLBACK";
75 +
  SBAR = "STATUSBAR";
76 +
  SIGNOFF = "QUIT";
77 +
  SV = "MSG * Irssi $J ($V) - http://www.irssi.org";
78 +
  T = "TOPIC";
79 +
  UB = "UNBAN";
80 +
  UMODE = "MODE $N";
81 +
  UNSET = "SET -clear";
82 +
  W = "WHO";
83 +
  WC = "WINDOW CLOSE";
84 +
  WG = "WINDOW GOTO";
85 +
  WJOIN = "JOIN -window";
86 +
  WI = "WHOIS";
87 +
  WII = "WHOIS $0 $0";
88 +
  WL = "WINDOW LIST";
89 +
  WN = "WINDOW NEW HIDDEN";
90 +
  WQUERY = "QUERY -window";
91 +
  WW = "WHOWAS";
92 +
  1 = "WINDOW GOTO 1";
93 +
  2 = "WINDOW GOTO 2";
94 +
  3 = "WINDOW GOTO 3";
95 +
  4 = "WINDOW GOTO 4";
96 +
  5 = "WINDOW GOTO 5";
97 +
  6 = "WINDOW GOTO 6";
98 +
  7 = "WINDOW GOTO 7";
99 +
  8 = "WINDOW GOTO 8";
100 +
  9 = "WINDOW GOTO 9";
101 +
  10 = "WINDOW GOTO 10";
102 +
  11 = "WINDOW GOTO 11";
103 +
  12 = "WINDOW GOTO 12";
104 +
  13 = "WINDOW GOTO 13";
105 +
  14 = "WINDOW GOTO 14";
106 +
  15 = "WINDOW GOTO 15";
107 +
  16 = "WINDOW GOTO 16";
108 +
  17 = "WINDOW GOTO 17";
109 +
  18 = "WINDOW GOTO 18";
110 +
  19 = "WINDOW GOTO 19";
111 +
  20 = "WINDOW GOTO 20";
112 +
  21 = "WINDOW GOTO 21";
113 +
  22 = "WINDOW GOTO 22";
114 +
  23 = "WINDOW GOTO 23";
115 +
  24 = "WINDOW GOTO 24";
116 +
  25 = "WINDOW GOTO 25";
117 +
  26 = "WINDOW GOTO 26";
118 +
  27 = "WINDOW GOTO 27";
119 +
  28 = "WINDOW GOTO 28";
120 +
  29 = "WINDOW GOTO 29";
121 +
  30 = "WINDOW GOTO 30";
122 +
  31 = "WINDOW GOTO 31";
123 +
  32 = "WINDOW GOTO 32";
124 +
  33 = "WINDOW GOTO 33";
125 +
  34 = "WINDOW GOTO 34";
126 +
  35 = "WINDOW GOTO 35";
127 +
  36 = "WINDOW GOTO 36";
128 +
  37 = "WINDOW GOTO 37";
129 +
  38 = "WINDOW GOTO 38";
130 +
  39 = "WINDOW GOTO 39";
131 +
  40 = "WINDOW GOTO 40";
132 +
  41 = "WINDOW GOTO 41";
133 +
  42 = "WINDOW GOTO 42";
134 +
  43 = "WINDOW GOTO 43";
135 +
  44 = "WINDOW GOTO 44";
136 +
  45 = "WINDOW GOTO 45";
137 +
  46 = "WINDOW GOTO 46";
138 +
  47 = "WINDOW GOTO 47";
139 +
  48 = "WINDOW GOTO 48";
140 +
  49 = "WINDOW GOTO 49";
141 +
  50 = "WINDOW GOTO 50";
142 +
  51 = "WINDOW GOTO 51";
143 +
  52 = "WINDOW GOTO 52";
144 +
  53 = "WINDOW GOTO 53";
145 +
  54 = "WINDOW GOTO 54";
146 +
  55 = "WINDOW GOTO 55";
147 +
  56 = "WINDOW GOTO 56";
148 +
  57 = "WINDOW GOTO 57";
149 +
  58 = "WINDOW GOTO 58";
150 +
  59 = "WINDOW GOTO 59";
151 +
  60 = "WINDOW GOTO 60";
152 +
  61 = "WINDOW GOTO 61";
153 +
  62 = "WINDOW GOTO 62";
154 +
  63 = "WINDOW GOTO 63";
155 +
  64 = "WINDOW GOTO 64";
156 +
  65 = "WINDOW GOTO 65";
157 +
  66 = "WINDOW GOTO 66";
158 +
  67 = "WINDOW GOTO 67";
159 +
  68 = "WINDOW GOTO 68";
160 +
  69 = "WINDOW GOTO 69";
161 +
  70 = "WINDOW GOTO 70";
162 +
  71 = "WINDOW GOTO 71";
163 +
  72 = "WINDOW GOTO 72";
164 +
  73 = "WINDOW GOTO 73";
165 +
  74 = "WINDOW GOTO 74";
166 +
  75 = "WINDOW GOTO 75";
167 +
  76 = "WINDOW GOTO 76";
168 +
  77 = "WINDOW GOTO 77";
169 +
  78 = "WINDOW GOTO 78";
170 +
  79 = "WINDOW GOTO 79";
171 +
  80 = "WINDOW GOTO 80";
172 +
  81 = "WINDOW GOTO 81";
173 +
  82 = "WINDOW GOTO 82";
174 +
  83 = "WINDOW GOTO 83";
175 +
  84 = "WINDOW GOTO 84";
176 +
  85 = "WINDOW GOTO 85";
177 +
  86 = "WINDOW GOTO 86";
178 +
  87 = "WINDOW GOTO 87";
179 +
  88 = "WINDOW GOTO 88";
180 +
  89 = "WINDOW GOTO 89";
181 +
  90 = "WINDOW GOTO 90";
182 +
  91 = "WINDOW GOTO 91";
183 +
  92 = "WINDOW GOTO 92";
184 +
  93 = "WINDOW GOTO 93";
185 +
  94 = "WINDOW GOTO 94";
186 +
  95 = "WINDOW GOTO 95";
187 +
  96 = "WINDOW GOTO 96";
188 +
  97 = "WINDOW GOTO 97";
189 +
  98 = "WINDOW GOTO 98";
190 +
  99 = "WINDOW GOTO 99";
191 +
};
192 +
193 +
statusbar = {
194 +
195 +
  items = {
196 +
197 +
    barstart = "{sbstart}";
198 +
    barend = "{sbend}";
199 +
200 +
    topicbarstart = "{topicsbstart}";
201 +
    topicbarend = "{topicsbend}";
202 +
203 +
    time = "{sb $Z}";
204 +
    user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
205 +
206 +
    window = "{sb $winref:$tag/$itemname{sbmode $M}}";
207 +
    window_empty = "{sb $winref{sbservertag $tag}}";
208 +
209 +
    prompt = "{prompt $[.15]itemname}";
210 +
    prompt_empty = "{prompt $winname}";
211 +
212 +
    topic = " $topic";
213 +
    topic_empty = " Irssi v$J - http://www.irssi.org";
214 +
215 +
    lag = "{sb Lag: $0-}";
216 +
    act = "{sb Act: $0-}";
217 +
    more = "-- more --";
218 +
  };
219 +
220 +
  default = {
221 +
222 +
    window = {
223 +
224 +
      disabled = "no";
225 +
      type = "window";
226 +
      placement = "bottom";
227 +
      position = "1";
228 +
      visible = "active";
229 +
230 +
      items = {
231 +
        barstart = { priority = "100"; };
232 +
        time = { };
233 +
        user = { };
234 +
        window = { };
235 +
        window_empty = { };
236 +
        lag = { priority = "-1"; };
237 +
        act = { priority = "10"; };
238 +
        more = { priority = "-1"; alignment = "right"; };
239 +
        barend = { priority = "100"; alignment = "right"; };
240 +
      };
241 +
    };
242 +
243 +
    window_inact = {
244 +
245 +
      type = "window";
246 +
      placement = "bottom";
247 +
      position = "1";
248 +
      visible = "inactive";
249 +
250 +
      items = {
251 +
        barstart = { priority = "100"; };
252 +
        window = { };
253 +
        window_empty = { };
254 +
        more = { priority = "-1"; alignment = "right"; };
255 +
        barend = { priority = "100"; alignment = "right"; };
256 +
      };
257 +
    };
258 +
259 +
    prompt = {
260 +
261 +
      type = "root";
262 +
      placement = "bottom";
263 +
      position = "100";
264 +
      visible = "always";
265 +
266 +
      items = {
267 +
        prompt = { priority = "-1"; };
268 +
        prompt_empty = { priority = "-1"; };
269 +
        input = { priority = "10"; };
270 +
      };
271 +
    };
272 +
273 +
    topic = {
274 +
275 +
      type = "root";
276 +
      placement = "top";
277 +
      position = "1";
278 +
      visible = "always";
279 +
280 +
      items = {
281 +
        topicbarstart = { priority = "100"; };
282 +
        topic = { };
283 +
        topic_empty = { };
284 +
        topicbarend = { priority = "100"; alignment = "right"; };
285 +
      };
286 +
    };
287 +
  };
288 +
};
289 +
settings = {
290 +
  core = {
291 +
    real_name = "Alexis Sellier";
292 +
    user_name = "cloudhead";
293 +
    nick = "cloudhead";
294 +
  };
295 +
  "fe-text" = { actlist_sort = "refnum"; };
296 +
};
297 +
ignores = ( { level = "PARTS"; } );