Bladeren bron

better irssi theme, from z3bra's irssi conf

master
mort 9 jaren geleden
bovenliggende
commit
0fd7523d43
4 gewijzigde bestanden met toevoegingen van 3236 en 0 verwijderingen
  1. 185
    0
      dotfiles/irssi/config
  2. 286
    0
      dotfiles/irssi/default.theme
  3. 287
    0
      dotfiles/irssi/mono.theme
  4. 2478
    0
      dotfiles/irssi/scripts/autorun/adv_windowlist.pl

+ 185
- 0
dotfiles/irssi/config Bestand weergeven

@@ -0,0 +1,185 @@
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 = "";
barend = "";
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
prompt = "{prompt}{sbaway $A}";
prompt_empty = "{prompt_empty}{sbaway $A}";
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 = "yes";

# 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"; };
act = { priority = "10"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};

# 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 = "inactive";
items = {
topicbarstart = { priority = "100"; };
topic = { };
topic_empty = { };
topicbarend = { priority = "100"; alignment = "right"; };
};
disabled = "yes";
};

empty_line_top = {
placement = "top";
items = { line_top = { }; };
position = "100";
};
awl_0 = {
placement = "top";
items = {
barstart = { priority = "100"; };
awl_0 = { };
barend = { priority = "100"; alignment = "right"; };
};
};
awl_1 = {
placement = "top";
items = {
barstart = { priority = "100"; };
awl_1 = { };
barend = { priority = "100"; alignment = "right"; };
};
};
};
};
# }}}
settings = {
# {{{
core = {
real_name = "mort";
user_name = "root";
nick = "mort";
timestamp_format = " %H:%M (%d/%m)";
quit_message = "RAGEQUIT";
};

"fe-text" = {
scrollback_time = "48h";
actlist_sort = "refnum";
indent = "8";
};

"fe-common/core" = {
autolog = "yes";
autolog_path = "~/var/log/irc/%Y/$tag/$0.%m-%d.log";
theme = "default";
bell_beeps = "yes";
beep_msg_level = "MSGS NOTICES INVITES DCC DCCMSGS HILIGHT";
use_status_window = "yes";
expand_escapes = "yes";
timestamp_level = "MSGS HILIGHT";
timestamp_timeout = "900";
completion_char = ",";
};
"perl/core/scripts" = {
awl_display_key = "%K$H$C $S";
awl_display_key_active = "$H%Y$C $S";
# awl_sort = "refnum";
# awl_hide_data = "0";
awl_placement = "top";
awl_separator = "\\ ";
awl_block = "-7";
awl_columns = "1";
awl_height_adjust = "2";
awl_maxlines = "-2";
awl_prefer_name = "on";
};
"irc/core" = {
ctcp_version_reply = "And what do we say to CTCP VERSION ? NOT. TODAY.";
};
};
# }}}
hilights = (
# {{{
{ text = "mort"; nick = "yes"; word = "no"; }
);
# }}}
logs = { };

+ 286
- 0
dotfiles/irssi/default.theme Bestand weergeven

@@ -0,0 +1,286 @@
# {{{
#
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)

# TEMPLATES:

# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
# might have had to change them in tens of different places. So, then came
# this templating system.

# Now the /FORMATs don't have any colors in them, and they also have very
# little other styling. Most of the stuff you need to change is in this
# theme file. If you can't change something here, you can always go back
# to change the /FORMATs directly, they're also saved in these .theme files.

# So .. the templates. They're those {blahblah} parts you see all over the
# /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
# When irssi sees this kind of text, it goes to find "name" from abstracts
# block below and sets "parameter1" into $0 and "parameter2" into $1 (you
# can have more parameters of course). Templates can have subtemplates.
# Here's a small example:
# /FORMAT format hello {colorify {underline world}}
# abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
# When irssi expands the templates in "format", the final string would be:
# hello %G%Uworld%U%n
# ie. underlined bright green "world" text.
# and why "$0-", why not "$0"? $0 would only mean the first parameter,
# $0- means all the parameters. With {underline hello world} you'd really
# want to underline both of the words, not just the hello (and world would
# actually be removed entirely).

# COLORS:

# You can find definitions for the color format codes in docs/formats.txt.

# There's one difference here though. %n format. Normally it means the
# default color of the terminal (white mostly), but here it means the
# "reset color back to the one it was in higher template". For example
# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
# print yellow "foo" (as set with %Y) but "bar" would be green, which was
# set at the beginning before the {foo} template. If there wasn't the %g
# at start, the normal behaviour of %n would occur. If you _really_ want
# to use the terminal's default color, use %N.
# }}}

#############################################################################

#
#
# default foreground color (%N) - -1 is the "default terminal color"
default_color = "-1";

# print timestamp/servertag at the end of line, not at beginning
info_eol = "true";

# these characters are automatically replaced with specified color
# (dark grey by default)
replaces = { "[]" = "%y$*%n"; };

abstracts = {
# {{{

############# generic ###############################

indent_default = "0";

# text to insert at the beginning of each non-message line
# line_start = "%g//%n ";
line_start = "";

# timestamp styling, nothing by default
timestamp = " %K-- %G$0%n";

# any kind of text that needs hilighting, default is to bold
hilight = "%_$*%_";

# any kind of error message, default is bright red
error = "%R$*%n";

# channel name is printed
channel = "%N$*%n";

# nick is printed
nick = "%_$*%_";

# nick host is printed
nickhost = "%N$*";

# server name is printed
server = "%y$*%N";

# some kind of comment is printed
comment = "%n(%K$*%n)";

# reason for something is printed (part, quit, kick, ..)
reason = "{comment $*}";

# mode change is printed ([+o nick])
mode = "{comment $*}";

## channel specific messages

# highlighted nick/host is printed (joins)
channick_hilight = "%W$*%N";
chanhost_hilight = "{nickhost $*}";

# nick/host is printed (parts, quits, etc.)
channick = "$*";
chanhost = "{nickhost $*}";

# highlighted channel name is printed
channelhilight = "%W$*%n";

# ban/ban exception/invite list mask is printed
ban = "$*";

########### messages #################################

# the basic styling of how to print message, $0 = nick mode, $1 = nick
msgnick = "%W$0%K %n%|";

# $0 = nick mode, $1 = nick
ownnick = "%w$*%n";

# public message in channel, $0 = nick mode, $1 = nick
pubnick = "%K$*%n";

# public highlighted message in channel
menick = "%R$*%n";

# channel name is printed with message
msgchannel = "%K %m$*%n";

# private message, $0 = nick, $1 = host
privmsg = "$0=%b\"$1-\"%n ";

# private message from you, $0 = "msg", $1 = target nick
ownprivmsg = "$0=%b\"$1-\"%n ";

########## Actions (/ME stuff) #########################

# generic one that's used by most actions
action = " %K $* %|";

# own action, both private/public
ownaction = "{action $*}";

# own action with target, both private/public
ownaction_target = "{action $*}";

# private action sent by others
pvtaction = "{action $*}";
pvtaction_query = "{action $*}";

# public action sent by others
pubaction = "{action $*}";


########## other IRC events #############################

# whois
whois = "%K whois %K$[-8]0 %n- $1";

# notices
ownnotice = "%NNote n = %Mnew%n $0 ($1-) ";
notice = "%M$*%n ";
pubnotice_channel = " %N($*)";
pvtnotice_host = " %N($*)";
servernotice = " %N($*)";

# CTCPs
ownctcp = "%NCTCP c = %Ynew%n $0 ($1-) ";
ctcp = "%N$*%n";

# wallops
wallop = "%K$*%n ";
wallop_nick = "%n$*";
wallop_action = "%K * $*%n ";

# netsplits
netsplit = " %Ksplit %R< %b\"$*\"%n";
netjoin = " %Ksplit %G> %b\"$*\"%n";

# /names list
names_users = "%K %K  %nnicknames list %K────";
names_nick = "%_$2$0%_%n$1- ";
names_nick_op = "{names_nick $* %R}";
names_nick_halfop = "{names_nick $* %C}";
names_nick_voice = "{names_nick $* %K}";
names_prefix = "%K names %n$1";
names_channel = "\"%b$*\"%n";

# /whois command

# DCC
dcc = "%g$*%n";
dccfile = "%_$*%_";

# DCC chat, own msg/action
dccownmsg = "%g /* $0 ($1-) */";
dccownnick = "$*%n";
dccownquerynick = "$*%n";
dccownaction = "{a┌tion $*}";
dccownaction_target = "{action $*}";

# DCC chat, others
dccmsg = "%g/* $1- ($0) */";
dccquerynick = "%g$*%n";
dccaction = "{action $*}";

######## statusbar/topicbar ############################

# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%n";

# default background for "default" statusbar group
sb_prompt_bg = "%n";

#prompt = "%K$Z %Y> ";
#prompt = " %K└─ ";
prompt = "%W> %n";
prompt_empty = "%W] %n";

sb = "$*";
sbaway = "%K(%YzzZz%K) %n";
sb_act_sep = " ";
sb_act_text = "%n$*";
sb_act_msg = "%w$*%n";
sb_act_hilight = "%W$*%n";
sb_act_hilight_color = "%W$1-%n";
};
# }}}

########################################################

formats = {
# {{{
"fe-common/core" = {
# {{{
line_start = "{line_start}";
line_start_irssi = "{line_start}";
join = " %G>%K %W{channick $0}%K: {nickhost %w$1}";
part = " %y<%K %W{channick $0}%K: {reason %Y$3}";
quit = " %r<%K %W{channick $0}%K: {reason %R$2}";
kick = " %R<%K %W{channick $0}%K: {reason %r$3}";
nick_changed = " %y>%K %n{channick $0} %K: %Y{channick $1}";
your_nick_changed = " %y>%K %nyou%K: %Y{channick $1}";
pubmsg = "{msgnick $[-8]0}$1";
own_msg = "{msgnick $[-8]0}$1";
own_msg_channel = "{msgnick $[-8]0}{msgchannel $1}}$2";
own_msg_private_query = " $1";

pubmsg_me = "{msgnick $[-8]0}%Y$1";
pubmsg_me_channel = "{msgnick $[-8]0}{msgchannel $1}}$2";

pubmsg_hilight = "{msgnick $[-8]1}%Y$2";
pubmsg_hilight_channel = "{msgnick $[-8]1}%Y$4{msgchannel $2}$3";

pubmsg_channel = "{msgnick $[-8]0}$1";
msg_private_query = "%B> $2";
new_topic = "{msgnick %c$[-8]1}%wnew topic %W'$2' %K-- $0";
endofnames = "%K %K  %nend of nick list %K──";
};
# }}}
"fe-common/irc" = {
# {{{
chanmode_change = " %y>%K {channick $1}";
server_chanmode_change = " %y> %K: %n {channick $1}";
whois = " %K  %nwho is $0 ? %K─────";
end_of_whois = " %K  %nend of whois %K─────";
own_action = "{action %Y$0}$1";
action_private = "{action %Y$0}$1";
action_private_query = "{action %Y$0}$2";
action_public = "{action %Y$0}$1";
topic = "{msgnick %c$[-8]0}%Ntopic %W'$*'";
topic_info = "{msgnick %c$[-8]C}%Nset by $0 %K($1)";
};
# }}}
};
# }}}

+ 287
- 0
dotfiles/irssi/mono.theme Bestand weergeven

@@ -0,0 +1,287 @@
# {{{
#
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)

# TEMPLATES:

# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
# might have had to change them in tens of different places. So, then came
# this templating system.

# Now the /FORMATs don't have any colors in them, and they also have very
# little other styling. Most of the stuff you need to change is in this
# theme file. If you can't change something here, you can always go back
# to change the /FORMATs directly, they're also saved in these .theme files.

# So .. the templates. They're those {blahblah} parts you see all over the
# /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
# When irssi sees this kind of text, it goes to find "name" from abstracts
# block below and sets "parameter1" into $0 and "parameter2" into $1 (you
# can have more parameters of course). Templates can have subtemplates.
# Here's a small example:
# /FORMAT format hello {colorify {underline world}}
# abstracts = { colorify = "%W$0-%n"; underline = "%U$0-%U"; }
# When irssi expands the templates in "format", the final string would be:
# hello %W%Uworld%U%n
# ie. underlined bright green "world" text.
# and why "$0-", why not "$0"? $0 would only mean the first parameter,
# $0- means all the parameters. With {underline hello world} you'd really
# want to underline both of the words, not just the hello (and world would
# actually be removed entirely).

# COLORS:

# You can find definitions for the color format codes in docs/formats.txt.

# There's one difference here though. %n format. Normally it means the
# default color of the terminal (white mostly), but here it means the
# "reset color back to the one it was in higher template". For example
# if there was /FORMAT test %w{foo}bar, and foo = "%W$0%n", irssi would
# print yellow "foo" (as set with %W) but "bar" would be green, which was
# set at the beginning before the {foo} template. If there wasn't the %w
# at start, the normal behaviour of %n would occur. If you _really_ want
# to use the terminal's default color, use %N.
# }}}

#############################################################################

#
#
# default foreground color (%N) - -1 is the "default terminal color"
default_color = "-1";

# print timestamp/servertag at the end of line, not at beginning
info_eol = "true";

# these characters are automatically replaced with specified color
# (dark grey by default)
replaces = { "[]" = "%w$*%n"; };

abstracts = {
# {{{

############# generic ###############################

indent_default = "0";

# text to insert at the beginning of each non-message line
# line_start = "%w//%n ";
line_start = "";

# timestamp styling, nothing by default
timestamp = "%K -- $0%n";

# any kind of text that needs hilighting, default is to bold
hilight = "%_$*%_";

# any kind of error message, default is bright red
error = "%K$*%n";

# channel name is printed
channel = "%N$*%n";

# nick is printed
nick = "%_$*%_";

# nick host is printed
nickhost = "$*";

# server name is printed
server = "%K$*%N";

# some kind of comment is printed
comment = "%n(%K$*%n)";

# reason for something is printed (part, quit, kick, ..)
reason = "{comment $*}";

# mode change is printed ([+o nick])
mode = "{comment $*}";

## channel specific messages

# highlighted nick/host is printed (joins)
channick_hilight = "%K$*%N";
chanhost_hilight = "{nickhost $*}";

# nick/host is printed (parts, quits, etc.)
channick = "$*";
chanhost = "{nickhost $*}";

# highlighted channel name is printed
channelhilight = "%K$*%n";

# ban/ban exception/invite list mask is printed
ban = "$*";

########### messages #################################

# the basic styling of how to print message, $0 = nick mode, $1 = nick
msgnick = "%W$0 %n%|";

# $0 = nick mode, $1 = nick
ownnick = "%W$*%n";

# public message in channel, $0 = nick mode, $1 = nick
pubnick = "%K$*%n";

# public highlighted message in channel
menick = "%K$*%n";

# channel name is printed with message
msgchannel = "%K $*%n";

# private message, $0 = nick, $1 = host
privmsg = "$0=%w\"$1-\"%n ";

# private message from you, $0 = "msg", $1 = target nick
ownprivmsg = "$0=%K\"$1-\"%n ";

########## Actions (/ME stuff) #########################

# generic one that's used by most actions
action = " $* %|";

# own action, both private/public
ownaction = "{action $*}";

# own action with target, both private/public
ownaction_target = "{action $*}";

# private action sent by others
pvtaction = "{action $*}";
pvtaction_query = "{action $*}";

# public action sent by others
pubaction = "{action $*}";


########## other IRC events #############################

# whois
whois = "%K whois $[-8]0 %n- $1";

# notices
ownnotice = "%NNote n =%K new%n $0 ($1-) ";
notice = "%K$*%n ";
pubnotice_channel = " %N($*)";
pvtnotice_host = " %N($*)";
servernotice = " %N($*)";

# CTCPs
ownctcp = "%NCTCP c =%K new%n $0 ($1-) ";
ctcp = "%N$*%n";

# wallops
wallop = "%K$*%n ";
wallop_nick = "%n$*";
wallop_action = "%K * $*%n ";

# netsplits
netsplit = "%K split - \"$*\"%n";
netjoin = "%K split + \"$*\"%n";

# /names list
names_users = "%K nicknames list ────";
names_nick = "%_$2$0%_%n$1- ";
names_nick_op = "{names_nick $*%K }";
names_nick_halfop = "{names_nick $* %W}";
names_nick_voice = "{names_nick $*%K }";
names_prefix = "%K names %n$1";
names_channel = "\"%w$*\"%n";

# /whois command

# DCC
dcc = "%w$*%n";
dccfile = "%_$*%_";

# DCC chat, own msg/action
dccownmsg = "%K /* $0 ($1-) */";
dccownnick = "$*%n";
dccownquerynick = "$*%n";
dccownaction = "{a┌tion $*}";
dccownaction_target = "{action $*}";

# DCC chat, others
dccmsg = "%K/* $1- ($0) */";
dccquerynick = "%K$*%n";
dccaction = "{action $*}";

######## statusbar/topicbar ############################

# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%n";

# default background for "default" statusbar group
sb_prompt_bg = "%n";

#prompt = "%K$Z %W> ";
#prompt = "%K └─ ";
prompt = "%W> %n";
prompt_empty = "%W] %n";

sb = "$*";
sbaway = "%K(%WzzZz%K) %n";
sb_act_sep = " ";
sb_act_text = "%n$*";
sb_act_msg = "%w/%K$*%n";
sb_act_hilight = "%W+%K$*%n";
sb_act_hilight_color = "%W+%K$1-%n";
};
# }}}

########################################################

formats = {
# {{{
"fe-common/core" = {
# {{{
line_start = "{line_start}";
line_start_irssi = "{line_start}";
join = "%K + {channick $0}: {nickhost $1}";
part = "%K - {channick $0}: {reason $3}";
quit = "%K - {channick $0}: {reason $2}";
kick = "%K < {channick $0}: {reason $3}";
nick_changed = "%K : {channick $0} > {channick $1}";
your_nick_changed = "%K : {channick $0} > {channick $1}";
pubmsg = "{msgnick $[-8]0}$1";
own_msg = "{msgnick $[-8]0}$1";
own_msg_channel = "{msgnick $[-8]0}{msgchannel $1}}$2";
own_msg_private_query = " $1";

pubmsg_me = "{msgnick $[-8]0}%W$1";
pubmsg_me_channel = "{msgnick $[-8]0}{msgchannel $1}}$2";

pubmsg_hilight = "{msgnick $[-8]1}%W$2";
pubmsg_hilight_channel = "{msgnick $[-8]1}%W$4{msgchannel $2}$3";

pubmsg_channel = "{msgnick $[-8]0}$1";
msg_private_query = "%W> $2";
new_topic = "{msgnick $[-8]1}%Ktopic '$2' -- $0";
endofnames = "%K end of nick list ──";
};
# }}}
"fe-common/irc" = {
# {{{
chanmode_change = "%K : {channick $1}";
server_chanmode_change = "%K : {channick $1}";
whois = "%K who is $0 ? ─────";
end_of_whois = "%K end of whois ─────";
own_action = "{action %W$0}$1";
action_private = "{action %W$0}$1";
action_private_query = "{action %W$0}$2";
action_public = "{action %W$0}$1";
topic = "{msgnick%K $[-8]0}topic '$*'";
topic_info = "{msgnick%K $[-8]C}set by $0 ($1)";
};
# }}}
};
# }}}


+ 2478
- 0
dotfiles/irssi/scripts/autorun/adv_windowlist.pl
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


Laden…
Annuleren
Opslaan