Skip to content

Instantly share code, notes, and snippets.

@robbintt
Last active May 23, 2017 22:19
Show Gist options
  • Save robbintt/2355d079fe3e0173621c5defe491b9ff to your computer and use it in GitHub Desktop.
Save robbintt/2355d079fe3e0173621c5defe491b9ff to your computer and use it in GitHub Desktop.
# run with "$ irssi --config=~/path/to/this/file"
# the username is listed on 3 lines, all one after another... change from "robbintt"
# the channels are a little below the top, add one line per channel, you can uncomment lines
# make sure the last channel line doesn't have a comma at the end though (as it is now)
# guide for generating and using an SSL cert:
# https://wiki.archlinux.org/index.php/irssi#Configuration
servers = (
{
address = "chat.freenode.net";
chatnet = "FN";
# i don't think you need to set the port if you don't use SSL
# the following options are for SSL:
# port = "6697";
# use_ssl = "yes";
# ssl_cert = "~/.dotfiles/.irssi/irssi.pem";
# ssl_verify = "no";
autoconnect = "yes";
}
);
chatnets = { FN = { type = "IRC"; }; };
channels = (
# { name = "#wordpress"; chatnet = "FN"; autojoin = "yes"; },
{ name = "#ansible"; chatnet = "FN"; autojoin = "yes"; },
{ name = "#irssi"; chatnet = "FN"; autojoin = "yes"; }
);
aliases = {
J = "join";
WJOIN = "join -window";
WQUERY = "query -window";
LEAVE = "part";
BYE = "quit";
EXIT = "quit";
SIGNOFN = "quit";
DESCRIBE = "action";
DATE = "time";
HOST = "userhost";
LAST = "lastlog";
SAY = "msg *";
WI = "whois";
WII = "whois $0 $0";
WW = "whowas";
W = "who";
N = "names";
M = "msg";
T = "topic";
C = "clear";
CL = "clear";
K = "kick";
KB = "kickban";
KN = "knockout";
BANS = "ban";
B = "ban";
MUB = "unban *";
UB = "unban";
IG = "ignore";
UNIG = "unignore";
SB = "scrollback";
UMODE = "mode $N";
WC = "window close";
WN = "window new hide";
SV = "say Irssi $J ($V) - http://irssi.org/";
GOTO = "sb goto";
CHAT = "dcc chat";
RUN = "SCRIPT LOAD";
CALC = "exec - if command -v bc >/dev/null 2>&1\\; then printf '%s=' '$*'\\; echo '$*' | bc -l\\; else echo bc was not found\\; fi";
SBAR = "STATUSBAR";
INVITELIST = "mode $C +I";
Q = "QUERY";
"MANUAL-WINDOWS" = "set use_status_window off;set autocreate_windows off;set autocreate_query_level none;set autoclose_windows off;set reuse_unused_windows on;save";
EXEMPTLIST = "mode $C +e";
ATAG = "WINDOW SERVER";
UNSET = "set -clear";
RESET = "set -default";
};
statusbar = {
# formats:
# when using {templates}, the template is shown only if it's argument isn't
# empty unless no argument is given. for example {sb} is printed always,
# but {sb $T} is printed only if $T isn't empty.
items = {
# start/end text in statusbars
barstart = "{sbstart}";
barend = "{sbend}";
topicbarstart = "{topicsbstart}";
topicbarend = "{topicsbend}";
# treated "normally", you could change the time/user name to whatever
time = "{sb $Z}";
user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
# treated specially .. window is printed with non-empty windows,
# window_empty is printed with empty windows
window = "{sb $winref:$tag/$itemname{sbmode $M}}";
window_empty = "{sb $winref{sbservertag $tag}}";
prompt = "{prompt $[.15]itemname}";
prompt_empty = "{prompt $winname}";
topic = " $topic";
topic_empty = " Irssi v$J - http://www.irssi.org";
# all of these treated specially, they're only displayed when needed
lag = "{sb Lag: $0-}";
act = "{sb Act: $0-}";
more = "-- more --";
};
# there's two type of statusbars. root statusbars are either at the top
# of the screen or at the bottom of the screen. window statusbars are at
# the top/bottom of each split window in screen.
default = {
# the "default statusbar" to be displayed at the bottom of the window.
# contains all the normal items.
window = {
disabled = "no";
# window, root
type = "window";
# top, bottom
placement = "bottom";
# number
position = "1";
# active, inactive, always
visible = "active";
# list of items in statusbar in the display order
items = {
barstart = { priority = "100"; };
time = { };
user = { };
window = { };
window_empty = { };
lag = { priority = "-1"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
usercount = { };
};
};
# statusbar to use in inactive split windows
window_inact = {
type = "window";
placement = "bottom";
position = "1";
visible = "inactive";
items = {
barstart = { priority = "100"; };
window = { };
window_empty = { };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
# we treat input line as yet another statusbar :) It's possible to
# add other items before or after the input line item.
prompt = {
type = "root";
placement = "bottom";
# we want to be at the bottom always
position = "100";
visible = "always";
items = {
prompt = { priority = "-1"; };
prompt_empty = { priority = "-1"; };
# treated specially, this is the real input line.
input = { priority = "10"; };
};
};
# topicbar
topic = {
type = "root";
placement = "top";
position = "1";
visible = "always";
items = {
topicbarstart = { priority = "100"; };
topic = { };
topic_empty = { };
topicbarend = { priority = "100"; alignment = "right"; };
};
};
awl_0 = {
items = {
barstart = { priority = "100"; };
awl_0 = { };
barend = { priority = "100"; alignment = "right"; };
};
};
awl_1 = {
items = {
barstart = { priority = "100"; };
awl_1 = { };
barend = { priority = "100"; alignment = "right"; };
};
};
};
};
settings = {
core = {
real_name = "robbintt";
user_name = "robbintt";
nick = "robbintt";
quit_message = "quit";
recode_out_default_charset = "utf-8";
log_timestamp = "%H:%M:%S ";
};
"fe-text" = { actlist_sort = "refnum"; };
"fe-common/core" = { theme = "solarized"; autolog = "yes"; };
"perl/core/scripts" = {
awl_shared_sbar = "OFF";
awl_block = "20";
awl_maxlines = "4";
awl_sbar_maxlength = "yes";
awl_viewer = "no";
nicklist_width = "15";
nicklist_height = "50";
autolog = "yes";
};
};
logs = { };
windows = {
1 = { immortal = "yes"; name = "(status)"; level = "ALL"; };
2 = {
items = (
{
type = "QUERY";
chat_type = "IRC";
name = "nickserv";
tag = "FN";
}
);
};
};
mainwindows = { 2 = { first_line = "1"; lines = "55"; }; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment