dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit e6dad6130ed9bf16056dc8a432abf7e86aecb980
parent 54e8d72d2aa130ac41b73abca21f9cd6a4898c35
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 29 Aug 2022 18:54:08 -0400

Add irssi configuration

Diffstat:
A.irssi/config | 209+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.irssi/monochrome.theme | 232+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 441 insertions(+), 0 deletions(-)

diff --git a/.irssi/config b/.irssi/config @@ -0,0 +1,209 @@ +servers = ( + { + address = "irc.esper.net"; + chatnet = "EsperNet"; + port = "6697"; + use_tls = "yes"; + tls_verify = "yes"; + }, + { + address = "irc.libera.chat"; + chatnet = "liberachat"; + port = "6697"; + use_tls = "yes"; + tls_verify = "yes"; + }, + { + address = "irc.oftc.net"; + chatnet = "OFTC"; + port = "6697"; + use_tls = "yes"; + tls_verify = "yes"; + } +); + +chatnets = { + EsperNet = { + type = "IRC"; + max_kicks = "1"; + max_msgs = "4"; + max_whois = "1"; + sasl_mechanism = "PLAIN"; + sasl_username = "jbauer"; + sasl_password = "PASSWORD"; + }; + LiberaChat = { + type = "IRC"; + max_kicks = "1"; + max_msgs = "4"; + max_whois = "1"; + sasl_mechanism = "PLAIN"; + sasl_username = "jbauer"; + sasl_password = "PASSWORD"; + }; + OFTC = { + type = "IRC"; + autosendcmd = "^msg NickServ identify PASSWORD jbauer;wait -OFTC 2000"; + max_kicks = "1"; + max_msgs = "1"; + max_whois = "1"; + }; +}; + +channels = ( + { name = "##it_me_jek"; chatnet = "liberachat"; autojoin = "Yes"; } +); + +aliases = { + ATAG = "WINDOW SERVER"; + ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{visible_name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}"; + B = "BAN"; + BACK = "AWAY"; + BANS = "BAN"; + BYE = "QUIT"; + C = "CLEAR"; + CALC = "EXEC - if command -v bc >/dev/null 2>&1\\; then printf '%s=' '$*'\\; echo '$*' | bc -l\\; else echo bc was not found\\; fi"; + CHAT = "DCC CHAT"; + CS = "QUOTE CS"; + DATE = "TIME"; + DEHIGHLIGHT = "DEHILIGHT"; + DESCRIBE = "ACTION"; + DHL = "DEHILIGHT"; + EXEMPTLIST = "MODE $C +e"; + EXIT = "QUIT"; + GOTO = "SCROLLBACK GOTO"; + HIGHLIGHT = "HILIGHT"; + HL = "HILIGHT"; + HOST = "USERHOST"; + INVITELIST = "MODE $C +I"; + J = "JOIN"; + K = "KICK"; + KB = "KICKBAN"; + KN = "KNOCKOUT"; + LAST = "LASTLOG"; + LEAVE = "PART"; + M = "MSG"; + MS = "QUOTE MS"; + MUB = "UNBAN *"; + N = "NAMES"; + NMSG = "^MSG"; + NS = "QUOTE NS"; + OS = "QUOTE OS"; + P = "PART"; + Q = "QUERY"; + RESET = "SET -default"; + RUN = "SCRIPT LOAD"; + SAY = "MSG *"; + SB = "SCROLLBACK"; + SBAR = "STATUSBAR"; + SHELP = "QUOTE HELP"; + SIGNOFF = "QUIT"; + SV = "MSG * Irssi $J ($V) - https://irssi.org"; + T = "TOPIC"; + UB = "UNBAN"; + UMODE = "MODE $N"; + UNSET = "SET -clear"; + W = "WHO"; + WC = "WINDOW CLOSE"; + WG = "WINDOW GOTO"; + WJOIN = "JOIN -window"; + WI = "WHOIS"; + WII = "WHOIS $0 $0"; + WL = "WINDOW LIST"; + WN = "WINDOW NEW HIDDEN"; + WQUERY = "QUERY -window"; + WW = "WHOWAS"; +}; + +statusbar = { + items = { + barstart = "{sbstart}"; + barend = "{sbend}"; + + topicbarstart = "{topicsbstart}"; + topicbarend = "{topicsbend}"; + + time = "{sb $Z}"; + user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}"; + + 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 - https://irssi.org"; + + lag = "{sb Lag: $0-}"; + act = "{sb Act: $0-}"; + more = "-- more --"; + }; + default = { + window = { + disabled = "no"; + type = "window"; + placement = "bottom"; + position = "1"; + visible = "active"; + + 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"; }; + }; + }; + 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"; }; + }; + }; + prompt = { + type = "root"; + placement = "bottom"; + position = "100"; + visible = "always"; + items = { + prompt = { priority = "-1"; }; + prompt_empty = { priority = "-1"; }; + input = { priority = "10"; }; + }; + }; + topic = { + type = "root"; + placement = "top"; + position = "1"; + visible = "always"; + + items = { + topicbarstart = { priority = "100"; }; + topic = { }; + topic_empty = { }; + topicbarend = { priority = "100"; alignment = "right"; }; + }; + }; + }; +}; +settings = { + core = { + real_name = "Jake Bauer"; + user_name = "jbauer"; + nick = "jbauer"; + }; + "fe-common/core" = { theme = "monochrome"; }; +}; diff --git a/.irssi/monochrome.theme b/.irssi/monochrome.theme @@ -0,0 +1,232 @@ +# monochrome.theme, +# A monochrome irssi theme +# Made by jbauer on 2022/08/29 + +# 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 = "false"; + +# These characters are automatically replaced with the specified color +#replaces = { "" = "%K$*%n"; }; + +abstracts = { + ## General ## + # Text to insert at the beginning of each non-message line + line_start = " ### %|"; + + # Timestamp styling + timestamp = "%%m/%%d %%H:%%M"; + + # Any kind of text that needs hilighting + hilight = "%_$*%_"; + + # Any kind of error message + error = "%_%r$*%n%_"; + + # How the channel name is printed + channel = "%_$*%_"; + + # How the nick is printed + nick = "%_$*%_"; + + # How the nick host is printed + nickhost = "[$*]"; + + # How the server name is printed + server = "%_$*%_"; + + # How some kind of comment is printed + comment = "[$*]"; + + # How the reason for something is printed (part, quit, kick, ..) + reason = "{comment $*}"; + + # How mode change is printed ([+o nick]) + mode = "{comment $*}"; + + ## Channel specific messages ## + # How the nick/host is printed on join + channick_hilight = "%_$*%_"; + chanhost_hilight = "{nickhost $*}"; + + # How the nick/host is printed on part, quit, etc. + channick = "%_$*%_"; + chanhost = "{nickhost $*}"; + + # How the highlighted channel name is printed + channelhilight = "$*"; + + # How the ban/ban exception/invite list mask is printed + ban = "%r$*%n"; + + ## Messages ## + # The basic styling of how to print message, $0 = nick mode, $1 = nick + msgnick = "$0$1 %|"; + + # How a message from you is printed. + # "msgownnick" specifies the styling of the nick ($0 part in msgnick). + # "ownmsgnick" specifies the styling of the whole line. + + # Example1: You want the message text to be green: + # ownmsgnick = "{msgnick $0 $1-}%g"; + # Example2.1: You want < and > chars to be yellow: + # ownmsgnick = "%Y{msgnick $0 $1-%Y}%n"; + # (you'll also have to remove <> from replaces list above) + # Example2.2: But you still want to keep <> grey for other messages: + # pubmsgnick = "%K{msgnick $0 $1-%K}%n"; + # pubmsgmenick = "%K{msgnick $0 $1-%K}%n"; + # pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n"; + # ownprivmsgnick = "%K{msgnick $*%K}%n"; + # privmsgnick = "%K{msgnick %R$*%K}%n"; + + # $0 = nick mode, $1 = nick + ownmsgnick = "{msgnick <$0$1->}"; + ownnick = "%_$*%_"; + + # Public message in channel, $0 = nick mode, $1 = nick + pubmsgnick = "{msgnick <$0$1->}"; + pubnick = "%_$*%_"; + + # Public message in channel meant for me, $0 = nick mode, $1 = nick + pubmsgmenick = "{msgnick <$0$1->}"; + menick = "%_$*%_"; + + # Public highlighted message in channel + # $0 = highlight color, $1 = nick mode, $2 = nick + pubmsghinick = "{msgnick <$1$0$2->%n}"; + + # Style of the channel name when printed with message + msgchannel = "%b$*%n"; + + # Private message, $0 = nick, $1 = host + privmsg = "[%r$0%K(%r$1-%K)%n] "; + + # Private message from you, $0 = "msg", $1 = target nick + ownprivmsg = "[%r$0%K(%b$1-%K)%n] "; + + # Own private message in query + ownprivmsgnick = "{msgnick $*}"; + ownprivnick = "%_$*%_"; + + # Private message in query + privmsgnick = "{msgnick %_$*%_}"; + + ## Actions (/ME stuff) ## + # Probably overusing italics because I want the whole message to be + # italic but it only does the nick idk... + + # Used internally by this theme + action_core = "%I * $*%I"; + + # Generic styling that's used by most actions + action = "{action_core %I$*%I} "; + + # Own action, both private/public + ownaction = "{action %I$*%I}"; + + # Own action with target, both private/public + ownaction_target = "{action_core %I$0%I}%K:%b$1%n "; + + # Private action sent by others + pvtaction = "%I * $*%I"; + pvtaction_query = "{pvtaction %I$*%I} "; + + # Public action sent by others + pubaction = "{action %I$*%I} "; + + ## Other IRC events ## + # Whois + whois = "%# $[8]0 : $1-"; + + # Notices + ownnotice = "[%b$0%K(%B$1-%K)]%n "; + notice = "%K-%B$*%K-%n "; + pubnotice_channel = "%K:%r$*"; + pvtnotice_host = "%K(%b$*%K)"; + servernotice = "%r!$*%n "; + + # CTCPs + ownctcp = "[%b$0($1)%n] "; + ctcp = "%b$*%n"; + + # Wallops + wallop = "$*: "; + wallop_nick = "%_$*%_"; + wallop_action = "%I * $*%I"; + + # Netsplits + netsplit = "%_$*%_"; + netjoin = "%_$*%_"; + + # /names list + names_prefix = ""; + names_nick = "[%_$0%_$1-] "; + names_nick_op = "{names_nick %_$*%_}"; + names_nick_halfop = "{names_nick %U$*%U}"; + names_nick_voice = "{names_nick %I$*%I}"; + names_users = "[$*]"; + names_channel = "$*"; + + # DCC + dcc = "%g$*%n"; + dccfile = "%_$*%_"; + + # DCC chat, own msg/action + dccownmsg = "[%r$0%K($1-%K)%n] "; + dccownnick = "%r$*%n"; + dccownquerynick = "%W$*%n"; + dccownaction = "{action $*}"; + dccownaction_target = "{action_core $0}%K:%c$1%n "; + + # DCC chat, others + dccmsg = "[%G$1-%K(%g$0%K)%n] "; + dccquerynick = "%G$*%n"; + dccaction = "%W (*dcc*) $*%n %|"; + + ## Statusbar ## + # Default background/default foreground color for statusbar items. + sb_background = "%7%k"; + + # Default backround for "default" statusbar group + sb_default_bg = "%7"; + # Background for prompt / input line + sb_prompt_bg = "%n"; + # Background for info statusbar + sb_info_bg = "%7"; + # Background for topicbar + sb_topic_bg = "%7%k"; + + # Text at the beginning of statusbars. + sbstart = " <>"; + # Text at the end of statusbars. + sbend = "<> "; + + # Text at the start of the topic bar. + topicsbstart = " <>"; + # Text at the end of the topic bar. + topicsbend = "<> "; + + # Command prompt + prompt = "[$*]: "; + + # Styling of status bar elements + sb = " %k[$*%k]%n"; + sbmode = "(+$*)"; + sbaway = " (%Iaway%I)"; + sbservertag = ":$0 (change with ^X)"; + sbnickmode = "$0"; + + ## Activity in statusbar ## + # ',' separator + sb_act_sep = "%k$*"; + # Normal text + sb_act_text = "%k$*"; + # Public message + sb_act_msg = "%K$*"; + # Hilight + sb_act_hilight = "%r%_$*%_"; + # Hilight with specified color, $0 = color, $1 = text + sb_act_hilight_color = "$0%_$1-%_%n"; +};