dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 291b4ff0211d06c3a926e82e414012850a59d36b
parent 1742cd7fadd2a50a68520311b05eba6c122fb179
Author: z3bra <willy@mailoo.org>
Date:   Wed Jun 10 09:29:06 2015

irssi: reworked config to make it simpler

Diffstat:
 irssi/config        | 302 ++++++++++++++---------------------------------------
 irssi/default.theme | 236 +++++++----------------------------------
 2 files changed, 125 insertions(+), 413 deletions(-)

diff --git a/irssi/config b/irssi/config @@ -1,76 +1,70 @@ -servers = ( # {{{ +servers = ( { - address = "irc.quakenet.org"; - chatnet = "qnet"; - port = "6667"; - autoconnect = "yes"; + address = "irc.quakenet.org"; + chatnet = "qnet"; + port = "6667"; + autoconnect = "no"; }, { - address = "irc.freenode.net"; - chatnet = "fnode"; - port = "6697"; - use_ssl = "yes"; + address = "irc.freenode.net"; + chatnet = "fnode"; + port = "6697"; + use_ssl = "yes"; autoconnect = "yes"; }, { - address = "irc.epiknet.org"; - chatnet = "epik"; - port = "6667"; - autoconnect = "no"; - }, - { - address = "irc.nixers.net"; - chatnet = "nixers"; - port = "6697"; - use_ssl = "yes"; + address = "irc.nixers.net"; + chatnet = "nixers"; + port = "6697"; + use_ssl = "yes"; autoconnect = "yes"; }, { - address = "irc.blinkenshell.org"; - chatnet = "blink"; - port = "6697"; - use_ssl = "yes"; + address = "irc.blinkenshell.org"; + chatnet = "blink"; + port = "6697"; + use_ssl = "yes"; autoconnect = "yes"; }, { - address = "irc.iotek.org"; - chatnet = "iotek"; - port = "6697"; - use_ssl = "yes"; + address = "irc.iotek.org"; + chatnet = "iotek"; + port = "6697"; + use_ssl = "yes"; autoconnect = "no"; }, { - address = "irc.oftc.net"; - chatnet = "oftc"; - port = "6697"; - use_ssl = "yes"; + address = "irc.oftc.net"; + chatnet = "oftc"; + port = "6697"; + use_ssl = "yes"; autoconnect = "yes"; } ); -# }}} -chatnets = { # {{{ + +chatnets = { fnode = { - type = "IRC"; - nick = "z3bra"; + type = "IRC"; + nick = "z3bra"; autosendcmd = "/msg NickServ IDENTIFY password; /unquery NickServ"; }; qnet = { - type = "IRC"; - nick = "z3bra"; + type = "IRC"; + nick = "z3bra"; autosendcmd = "/msg Q@Cserve.quakenet.org AUTH z3bra passw0rd; /unquery Q@Cserve.quakenet.org"; }; nixers = { - type = "IRC"; - nick = "z3bra"; + type = "IRC"; + nick = "z3bra"; autosendcmd = "/msg nickserv IDENTIFY password; /unquery nickserv"; }; blink = { type = "IRC"; }; iotek = { type = "IRC"; }; - epik = { type = "IRC"; }; - oftc = { type = "IRC"; }; + epik = { type = "IRC"; }; + oftc = { type = "IRC"; }; }; -# }}} -channels = ( # {{{ + +channels = ( { name = "#defrag-france"; chatnet = "qnet"; autojoin = "Yes"; }, { name = "#nixers"; chatnet = "nixers"; autojoin = "Yes"; }, { name = "#vim-fr"; chatnet = "fnode"; autojoin = "Yes"; }, @@ -78,12 +72,11 @@ channels = ( # {{{ { name = "#blinkenshell"; chatnet = "blink"; autojoin = "Yes"; }, { name = "#iotek"; chatnet = "iotek"; autojoin = "No"; }, { name = "#crux"; chatnet = "fnode"; autojoin = "Yes"; }, - { name = "#frenchfags"; chatnet = "fnode"; autojoin = "Yes"; }, { name = "#2f30"; chatnet = "fnode"; autojoin = "Yes"; }, - { name = "#morpheus"; chatnet = "oftc"; autojoin = "Yes"; } + { name = "#morpheus"; chatnet = "oftc"; autojoin = "No"; } ); -# }}} -aliases = { # {{{ + +aliases = { J = "join"; WJOIN = "join -window"; WQUERY = "query -window"; @@ -114,7 +107,7 @@ aliases = { # {{{ SH = "exec -"; UMODE = "mode $N"; WC = "window close"; - WN = "window new hide"; + WN = "window name"; WS = "window show"; WK = "window stick"; WM = "window move"; @@ -133,129 +126,42 @@ aliases = { # {{{ OP = "msg ChanServ OP $C"; DEOP = "msg ChanServ DEOP $C"; CHEZWAM = "say http://chezmoicamarche.com"; + TWSS = "say THAT'S WHAT SHE SAID"; }; -# }}} -keyboard = ( # {{{ + +keyboard = ( { key = "meta-A"; id = "change_window"; data = "11"; }, { key = "meta-Z"; id = "change_window"; data = "12"; }, { key = "meta-E"; id = "change_window"; data = "13"; }, { key = "meta-R"; id = "change_window"; data = "14"; }, { key = "meta-T"; id = "change_window"; data = "15"; } ); -# }}} -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. +statusbar = { default = { # the "default statusbar" to be displayed at the bottom of the window. # contains all the normal items. - window = { - disabled = "yes"; + window = { disabled = "yes"; }; + topic = { visible = "inactive"; 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"; }; - }; - }; + # leave an empty line before the prompt + empty_line_top = { placement = "top"; position = "100"; }; # 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"; }; + input = { priority = "0"; }; }; }; - # 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_1 = { placement = "top"; items = { barstart = { priority = "100"; }; awl_1 = { }; barend = { priority = "100"; alignment = "right"; }; }; }; awl_0 = { placement = "top"; items = { @@ -264,67 +170,56 @@ statusbar = { # {{{ barend = { priority = "100"; alignment = "right"; }; }; }; - awl_1 = { - placement = "top"; - items = { - barstart = { priority = "100"; }; - awl_1 = { }; - barend = { priority = "100"; alignment = "right"; }; - }; - }; }; }; -# }}} -settings = { # {{{ + +settings = { core = { - real_name = "z3bra"; - user_name = "z-brah"; - nick = "z3bra"; - timestamp_format = " %H:%M (%d/%m)"; - quit_message = "kill -9 $(pidof z3bra)"; + real_name = "z3bra"; + user_name = "z3bra"; + nick = "z3bra"; + timestamp_format = "%H:%M (%d/%m)"; + quit_message = "kill -s TERM $(pidof z3bra)"; }; "fe-text" = { scrollback_time = "48h"; - actlist_sort = "refnum"; - indent = "8"; + 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"; + 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"; + expand_escapes = "yes"; + timestamp_level = "MSGS HILIGHT"; timestamp_timeout = "900"; - completion_char = ","; + completion_char = ","; }; "perl/core/scripts" = { - awl_display_key = "%K$H$C $S"; - awl_display_key_active = "$H%Y$C $S"; + awl_display_key = "%K$H$C$S"; + awl_display_key_active = "%W$H$C$S%n"; # 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"; + awl_placement = "top"; + awl_block = ""; + awl_columns = "1"; + awl_height_adjust = "2"; + awl_maxlines = "1"; + awl_prefer_name = "on"; }; "irc/core" = { ctcp_version_reply = "And what do we say to CTCP VERSION ? NOT. TODAY."; }; }; -# }}} -hilights = ( # {{{ - { text = "z3bra"; nick = "yes"; word = "no"; } -); -# }}} -windows = { # {{{ + +hilights = ( { text = "z3bra"; nick = "yes"; word = "yes"; } ); + +windows = { 1 = { items = ( { @@ -360,32 +255,12 @@ windows = { # {{{ { type = "CHANNEL"; chat_type = "IRC"; - name = "#defrag-france"; - tag = "qnet"; - } - ); - }; - 5 = { - items = ( - { - type = "CHANNEL"; - chat_type = "IRC"; - name = "#frenchfags"; - tag = "fnode"; - } - ); - }; - 6 = { - items = ( - { - type = "CHANNEL"; - chat_type = "IRC"; name = "#crux"; tag = "fnode"; } ); }; - 7 = { + 5 = { items = ( { type = "CHANNEL"; @@ -395,7 +270,7 @@ windows = { # {{{ } ); }; - 8 = { + 6 = { items = ( { type = "CHANNEL"; @@ -405,15 +280,6 @@ windows = { # {{{ } ); }; - 9 = { - items = ( - { - type = "CHANNEL"; - chat_type = "IRC"; - name = "#morpheus"; - tag = "oftc"; - } - ); - }; }; -# }}} + +logs = { }; diff --git a/irssi/default.theme b/irssi/default.theme @@ -1,4 +1,4 @@ -# {{{ +#{{{ # # 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 @@ -63,158 +63,17 @@ info_eol = "true"; 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"; + timestamp = " %K-- $0%n"; # /names list - names_users = "%K %K  %nnicknames list %K────"; + names_users = ""; names_nick = "%_$2$0%_%n$1- "; - names_nick_op = "{names_nick $* %R}"; + names_nick_op = "%W$2$0%n$1"; 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"; @@ -222,65 +81,52 @@ abstracts = { # 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 = "%K$*"; + sb_act_sep = "\\ "; + sb_act_text = "%K$*"; sb_act_msg = "%w$*%n"; - sb_act_hilight = "%W$*%n"; - sb_act_hilight_color = "%W$1-%n"; + sb_act_hilight = "%B$*%n"; + sb_act_hilight_color = "%B$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──"; + line_start = ""; + line_start_irssi = ""; + join = "%W+ %K$0 - $1"; + part = "%W- %K$0 - PART: $3"; + quit = "%W- %K$0 - QUIT: $2"; + kick = "%W- %K$0 - KICK: $3"; + nick_changed = "%W> %K$0 %W> %K$1}"; + your_nick_changed = "%W> %K$0 %W> %K$1}"; + pubmsg = "%B$0 %W$1"; + own_msg = "%Y$0 %W$1"; + own_msg_channel = "%Y$0 %W$1 $2"; + own_msg_private_query = "%Yme %W$1"; + + pubmsg_me = "%c$0 %W$1"; + pubmsg_me_channel = "%c$0 %W$1 %K($2)"; + + pubmsg_hilight = "%B$1 $2"; + pubmsg_channel = "%B$0 $1"; + + msg_private_query = "%R$0 %W$2"; + new_topic = "topic: $2"; + endofnames = ""; }; - # }}} "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)"; + chanmode_change = "%K$0 : $1"; + server_chanmode_change = "%K$0 : $1"; + whois = "WHOIS $0"; + end_of_whois = "end of WHOIS"; + own_action = "%Y$0 $1"; + action_private = "%Y$0 $1"; + action_private_query = "%Y$0 $2"; + action_public = "%Y$0 $1"; + topic = "$*"; + topic_info = "by $0 ($1)"; }; - # }}} }; -# }}}