dotfiles

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

commit 5cce28c061c0039a11b8e75c4a2ccbd552a94201
parent f84ab7cef96af1fa641690af4e7d0302c1879e67
Author: Willy Goiffon <z3bra@blinkenshell.org>
Date:   Mon Nov  4 00:03:40 2013

Reworked irssi theme

Diffstat:
 irssi/config          |  14 +--
 irssi/config.autosave | 377 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 irssi/default.theme   |   6 +-
 3 files changed, 385 insertions(+), 12 deletions(-)

diff --git a/irssi/config b/irssi/config @@ -55,7 +55,11 @@ chatnets = { nick = "z3bra"; autosendcmd = "/msg Q@Cserve.quakenet.org AUTH z3bra passw0rd; /unquery Q@Cserve.quakenet.org"; }; - unixhub = { type = "IRC"; }; + unixhub = { + type = "IRC"; + nick = "z3bra"; + autosendcmd = "/msg nickserv AUTH z3bra password; /unquery nickserv"; + }; gamesurge = { type = "IRC"; }; }; # }}} @@ -275,14 +279,6 @@ statusbar = { barend = { priority = "100"; alignment = "right"; }; }; }; - awl_1 = { - placement = "top"; - items = { - barstart = { priority = "100"; }; - awl_1 = { }; - barend = { priority = "100"; alignment = "right"; }; - }; - }; }; }; # }}} diff --git a/irssi/config.autosave b/irssi/config.autosave @@ -0,0 +1,377 @@ +## SERVERS +servers = ( + # {{{ + { + address = "irc.quakenet.org"; + chatnet = "quakenet"; + port = "6667"; + autoconnect = "yes"; + }, + { + address = "irc.freenode.org"; + chatnet = "freenode"; + port = "6667"; + autoconnect = "yes"; + }, + { + address = "irc.blinkenshell.org"; + chatnet = "blinkenshell"; + port = "6697"; + use_ssl = "yes"; + autoconnect = "yes"; + }, + { + address = "irc.gamesurge.net"; + chatnet = "gamesurge"; + port = "6667"; + autoconnect = "no"; + }, + { + address = "irc.unixhub.net"; + chatnet = "unixhub"; + port = "6667"; + autoconnect = "yes"; + } +); +# }}} + +## COMMANDS +chatnets = { + # {{{ + freenode = { + type = "IRC"; + max_kicks = "1"; + max_msgs = "3"; + max_whois = "30"; + nick = "z3bra"; + autosendcmd = "/msg NickServ IDENTIFY password; /unquery NickServ"; + }; + blinkenshell = { type = "IRC"; }; + quakeNet = { + type = "IRC"; + max_kicks = "1"; + max_msgs = "3"; + max_whois = "30"; + nick = "z3bra"; + autosendcmd = "/msg Q@Cserve.quakenet.org AUTH z3bra passw0rd; /unquery Q@Cserve.quakenet.org"; + }; + unixhub = { type = "IRC"; }; + gamesurge = { type = "IRC"; }; +}; +# }}} + +## CHANNELS +channels = ( + # {{{ + { name = "#defrag-france"; chatnet = "quakenet"; autojoin = "Yes"; }, + { name = "#pndc"; chatnet = "freenode"; autojoin = "No"; }, + { name = "#vim-fr"; chatnet = "freenode"; autojoin = "Yes"; }, + { name = "#archlinux"; chatnet = "freenode"; autojoin = "No"; }, + { name = "#archlinux-fr"; chatnet = "freenode"; autojoin = "Yes"; }, + { + name = "#archlinux-newbie"; + chatnet = "freenode"; + autojoin = "No"; + }, + { + name = "#blinkenshell"; + chatnet = "blinkenshell"; + autojoin = "Yes"; + }, + { name = "#unixhub"; chatnet = "unixhub"; autojoin = "Yes"; }, + { name = "#wizards"; chatnet = "unixhub"; autojoin = "Yes"; }, + { name = "#cube.fr"; chatnet = "gamesurge"; autojoin = "Yes"; } +); +# }}} + +## ALIASES +aliases = { + # {{{ + J = "join"; + WJOIN = "join -window"; + WQUERY = "query -window"; + P = "part"; + DESCRIBE = "action"; + DATE = "time"; + HOST = "userhost"; + LAST = "lastlog"; + SAY = "msg *"; + WI = "whois"; + WII = "whois $0 $0"; + WW = "whowas"; + W = "window"; + N = "names"; + M = "msg"; + T = "topic"; + C = "clear"; + K = "kick"; + KB = "kickban"; + KN = "knockout"; + BANS = "ban"; + B = "ban"; + MUB = "unban *"; + UB = "unban"; + IG = "ignore"; + UNIG = "unignore"; + SB = "scrollback"; + SH = "exec -"; + UMODE = "mode $N"; + WC = "window close"; + WN = "window new hide"; + WS = "window show"; + WK = "window stick"; + WM = "window move"; + WG = "window grow"; + WL = "window list"; + SV = "say Irssi $J ($V) - http://irssi.org/"; + GOTO = "sb goto"; + CHAT = "dcc chat"; + RUN = "SCRIPT LOAD"; + 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\" }'"; + CALC = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi"; + SBAR = "STATUSBAR"; + INVITELIST = "mode $C +I"; + Q = "QUIT"; + QU = "QUERY"; + UQ = "UNQUERY"; + HL = "lastlog -hilight"; +}; +# }}} + +## STATUSBAR +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}"; + + # Top and bottom line + #line_top = "%K──────────────┐"; + #line_bottom = "%K │"; + line_top = ""; + line_bottom = ""; + + # 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 = "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"; + }; + void_topic = { placement = "top"; position = "0"; }; + void_status = { + placement = "top"; + items = { line_top = { }; }; + position = "100"; + }; + void_bottom = { + placement = "bottom"; + items = { line_bottom = { }; }; + position = "1"; + }; + awl_0 = { + placement = "top"; + items = { + barstart = { priority = "100"; }; + awl_0 = { }; + barend = { priority = "100"; alignment = "right"; }; + }; + }; + }; +}; +# }}} + +## FORMAT +settings = { + # {{{ + core = { + real_name = "z3bra"; + user_name = "z-brah"; + nick = "z3bra"; + timestamp_format = "%H.%M"; + quit_message = "int random() { return 3; /*number randomly chosen with a dice roll*/ }"; + }; + + "fe-text" = { scrollback_time = "48h"; actlist_sort = "refnum"; }; + + "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 = "no"; + expand_escapes = "yes"; + }; + "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 = "\\ \\ \\ "; + }; +}; +# }}} + +## HILIGHTS +hilights = ( + # {{{ + { text = "willy"; nick = "no"; word = "yes"; }, + { text = "z3bra"; nick = "yes"; word = "no"; } +); +# }}} + +logs = { }; +ignores = ( ); + +windows = { + 1 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#vim-fr"; + tag = "freenode"; + } + ); + }; + 2 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#archlinux-fr"; + tag = "freenode"; + } + ); + }; + 3 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#unixhub"; + tag = "unixhub"; + } + ); + }; + 4 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#defrag-france"; + tag = "quakeNet"; + } + ); + }; + 5 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#blinkenshell"; + tag = "blinkenshell"; + } + ); + }; +}; diff --git a/irssi/default.theme b/irssi/default.theme @@ -269,7 +269,7 @@ formats = { # {{{ quit = "%K %R◥ %K│ %W{channick $0}%K: {reason %R$2}"; quit_once = "{channel $3} {channick $0} {chanhost $1} %Kquit {reason %r$2}"; - nick_changed = "%K %y◢ %K│ %n{channick $0} %K: %Y{channick $1}"; + nick_changed = "%K %y◢ %K│ %n{channick $0} %K: %Y{channick $1}"; your_nick_changed = "%K %y◢ %K│ %nyou%K: %Y{channick $1}"; pubmsg = "{pubmsgnick $2 {pubnick $[-11]0}}$1"; @@ -293,8 +293,8 @@ formats = { # {{{ }; # }}} "fe-common/irc" = { # {{{ - chanmode_change = "%K %y◢ %K│ %n {channick $1}"; - server_chanmode_change = "%K %y◢ %K│ %n {channick $1}"; + chanmode_change = "%K %y◢ %K│ %n {channick $1}"; + server_chanmode_change = "%K %y◢ %K│ %n {channick $1}"; own_action = "{ownaction $[-11]0} $1"; action_private = "{pvtaction $[-11]0}$1";