irssi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
irssi [2010/11/10 16:14] – k2patel | irssi [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 29: | Line 29: | ||
/op -YES * | /op -YES * | ||
</ | </ | ||
+ | |||
+ | ==== Alias ==== | ||
+ | |||
+ | This is something really powerfull please be carefull.\\ | ||
+ | you can use shell command to execute and print on channel. | ||
+ | |||
+ | == Fortune == | ||
+ | <code bash> | ||
+ | /alias fortune exec - -o / | ||
+ | </ | ||
+ | |||
+ | == Figlet == | ||
+ | <code bash> | ||
+ | /alias figlet exec - -o / | ||
+ | </ | ||
+ | |||
+ | |||
+ | === From other pages === | ||
+ | |||
+ | |||
+ | remove activity from all windows: | ||
+ | <code bash> | ||
+ | alias UNACT script exec foreach $$w (Irssi:: | ||
+ | </ | ||
+ | |||
+ | calc with (10) decimals: | ||
+ | <code bash> | ||
+ | alias CALC exec – if which bc &>/ | ||
+ | </ | ||
+ | |||
+ | Dump perl object (e.g. /dump Irssi:: | ||
+ | <code bash> | ||
+ | alias DUMP script exec use Data:: | ||
+ | </ | ||
+ | |||
+ | Put output of a command in the current window (e.g. /here help blah) (does not work with whois, and other output coming from the server): | ||
+ | <code bash> | ||
+ | alias HERE script exec \$a=Irssi:: | ||
+ | </ | ||
+ | |||
+ | do /lastlog, but for all windows… /alllast -HILIGHT would show all hilights in every buffer in the current window (like hilightwindow.pl, | ||
+ | <code bash> | ||
+ | alias ALLLASTLOG script exec foreach (Irssi:: | ||
+ | </ | ||
+ | |||
+ | execute a command on a given server (e.g. “/tag ircnet join #irssi” would join irssi on ircnet (if you’re connected to ircnet)): | ||
+ | <code bash> | ||
+ | alias TAG script exec Irssi:: | ||
+ | </ | ||
+ | |||
+ | list (say) your currently loaded scripts (just the names, on one line): | ||
+ | <code bash> | ||
+ | alias LISTSCRIPTS script exec foreach \$s (sort grep(s/:: | ||
+ | </ | ||
+ | |||
+ | list (print) a list of servers you’re currently connected to, what nick you have there, and on which channels you are: | ||
+ | <code bash> | ||
+ | alias LISTCHANS script exec foreach (Irssi:: | ||
+ | </ | ||
+ | |||
+ | mass-op all non-voiced (to op everyone just use /op *): | ||
+ | <code bash> | ||
+ | alias MOP script exec foreach \$n (Irssi:: | ||
+ | </ | ||
+ | |||
+ | Show for how long you have been connected to the current server: | ||
+ | <code bash> | ||
+ | alias CONNECTIONUPTIME script exec \$a=`date +%s` – Irssi:: | ||
+ | </ | ||
+ | |||
+ | Goto to x’th last window (0 = last, 1 = second last) | ||
+ | <code bash> | ||
+ | alias window_goto_last_minus script exec Irssi:: | ||
+ | </ | ||
+ | |||
+ | Remove all bans set by you | ||
+ | <code bash> | ||
+ | alias mubmy script exec \$c=Irssi:: | ||
+ | </ | ||
+ | |||
+ | [[http:// | ||
==== IrSSi Settings ==== | ==== IrSSi Settings ==== | ||
Line 58: | Line 139: | ||
+ | ==== Nice Scripts ==== | ||
+ | |||
+ | |||
+ | === window_switcher === | ||
+ | |||
+ | [[ http:// | ||
+ | [[http:// | ||
+ | |||
+ | <code text> | ||
+ | * Add the statusbar item: | ||
+ | /STATUSBAR window add window_switcher | ||
+ | * Type /ws followed by a window number or part of a window or channel name. | ||
+ | * When the right item is at the first place in the statusbar, press enter. | ||
+ | * For faster usage, do “/BIND ^G multi erase_line; | ||
+ | </ | ||
+ | |||
+ | ==== ShortCut' | ||
+ | |||
+ | <code bash> | ||
+ | Ctrl-X to switch between network connections | ||
+ | Alt-[0-9] switch to windows | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Binding F Key ==== | ||
+ | |||
+ | <code bash> | ||
+ | /bind meta2-P | ||
+ | /bind meta2-Q | ||
+ | /bind meta2-R | ||
+ | /bind meta2-S | ||
+ | /bind meta2-15~ | ||
+ | /bind meta2-17~ | ||
+ | /bind meta2-18~ | ||
+ | /bind meta2-19~ | ||
+ | /bind meta2-20~ | ||
+ | /bind meta2-21~ | ||
+ | /bind meta2-24~ | ||
+ | /bind meta2-23~ | ||
+ | /bind meta2-24~ | ||
+ | |||
+ | /bind meta2-2P | ||
+ | /bind meta2-2Q | ||
+ | /bind meta2-2R | ||
+ | /bind meta2-2S | ||
+ | /bind meta2-15;2~ key sF5 | ||
+ | /bind meta2-17;2~ key sF6 | ||
+ | /bind meta2-18;2~ key sF7 | ||
+ | /bind meta2-19;2~ key sF8 | ||
+ | /bind meta2-20;2~ key sF9 | ||
+ | /bind meta2-21;2~ key sF10 | ||
+ | /bind meta2-24;2~ key sF12 | ||
+ | /bind meta2-23;2~ key sF11 | ||
+ | /bind meta2-24;2~ key sF12 | ||
+ | </ | ||
+ | |||
+ | When you’ve done that, you can do, for example /bind F1 change_window 1 to bind something to F1, or /bind sF1 for shift-F1. | ||
+ | [[http:// | ||
==== My Environment ==== | ==== My Environment ==== | ||
Line 303: | Line 442: | ||
</ | </ | ||
- | <code bash | ~/.irssi/default.theme> | + | <code bash | ~/.irssi/thirdeye.theme> |
- | # 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 | + | #### ThirdEye 1.4 #### |
- | # to /SAVE it first. Remember also that /SAVE overwrites the theme file with | + | #### by salo <salo at Xtrmntr.org> |
- | # 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' | ||
- | |||
- | # So .. the templates. They' | ||
- | # /FORMATs and here. Their usage is simply {name parameter1 parameter2}. | ||
- | # When irssi sees this kind of text, it goes to find " | ||
- | # block below and sets " | ||
- | # can have more parameters of course). Templates can have subtemplates. | ||
- | # Here's a small example: | ||
- | # / | ||
- | # | ||
- | # When irssi expands the templates in " | ||
- | # hello %G%Uworld%U%n | ||
- | # ie. underlined bright green " | ||
- | # and why " | ||
- | # $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/ | ||
- | |||
- | # There' | ||
- | # default color of the terminal (white mostly), but here it means the | ||
- | # "reset color back to the one it was in higher template" | ||
- | # if there was /FORMAT test %g{foo}bar, and foo = " | ||
- | # print yellow " | ||
- | # 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' | ||
- | |||
- | ############################################################################# | ||
- | |||
- | # default foreground color (%N) - -1 is the " | ||
- | default_color = " | ||
- | |||
- | # print timestamp/ | ||
- | info_eol = " | ||
- | |||
- | # these characters are automatically replaced with specified color | ||
- | # (dark grey by default) | ||
- | replaces = { " | ||
+ | replaces = { " | ||
abstracts = { | abstracts = { | ||
- | | + | line_start = "--- "; |
- | ## generic | + | timestamp = "[$0-]"; |
- | ## | + | hilight = "%_$0-%_"; |
- | + | error = "%G$0-%n"; | |
- | # text to insert at the beginning of each non-message line | + | channel = "%c$0-%n"; |
- | | + | nick = "%_$0-%_"; |
- | + | nickhost = "[$0-]"; | |
- | # timestamp styling, nothing by default | + | server = "%_$0-%_"; |
- | timestamp = "$*"; | + | comment = "[%_$0-%_]"; |
- | + | reason = " | |
- | # any kind of text that needs hilighting, default is to bold | + | mode = " |
- | hilight = "%_$*%_"; | + | channick_hilight = "%_$0-%_"; |
- | + | chanhost_hilight = " | |
- | # any kind of error message, default is bright red | + | channick = "%_$0-%_"; |
- | error = "%R$*%n"; | + | chanhost = "{nick}"; |
- | + | channelhilight = "%c$0-%n"; | |
- | # channel name is printed | + | ban = "%c$0-%n"; |
- | channel = "%_$*%_"; | + | msgnick = "< |
- | + | | |
- | # nick is printed | + | |
- | nick = "%_$*%_"; | + | |
- | + | pubmsgnick = "%c{msgnick $0 $1-%c}%N"; | |
- | # nick host is printed | + | pubmsgmenick = "%c{msgnick $0 $1-%c}%N"; |
- | nickhost = "[$*]"; | + | pubmsghinick = "%c{msgnick $1 %G$2-%n%c}%N"; |
- | + | | |
- | # server name is printed | + | |
- | server = "%_$*%_"; | + | |
- | + | | |
- | # some kind of comment is printed | + | |
- | comment = "[$*]"; | + | |
- | + | | |
- | # reason for something is printed (part, quit, kick, ..) | + | # ownprivmsgnick = "%G{msgnick |
- | reason = " | + | # privmsgnick = "%c{msgnick |
- | + | action_core = "%G>>> | |
- | # mode change is printed ([+o nick]) | + | action = " |
- | mode = " | + | ownaction = " |
- | + | ||
- | ## | + | |
- | ## channel specific messages | + | |
- | ## | + | |
- | + | ||
- | # highlighted nick/host is printed (joins) | + | |
- | channick_hilight = "%C$*%n"; | + | |
- | chanhost_hilight = " | + | |
- | + | ||
- | # nick/host is printed (parts, quits, etc.) | + | |
- | channick = "%c$*%n"; | + | |
- | chanhost = "{nickhost $*}"; | + | |
- | + | ||
- | # highlighted channel name is printed | + | |
- | channelhilight = "%c$*%n"; | + | |
- | + | ||
- | # ban/ban exception/ | + | |
- | ban = "%c$*%n"; | + | |
- | + | ||
- | ## | + | |
- | ## messages | + | |
- | ## | + | |
- | + | ||
- | # the basic styling of how to print message, $0 = nick mode, $1 = nick | + | |
- | msgnick = "%K<%n$0$1-%K>%n %|"; | + | |
- | + | ||
- | | + | |
- | # nick ($0 part in msgnick) and "ownmsgnick" | + | |
- | | + | |
- | + | ||
- | # Example1: You want the message text to be green: | + | |
- | # ownmsgnick | + | |
- | | + | |
- | # ownmsgnick | + | |
- | # | + | |
- | # Example2.2: But you still want to keep <> grey for other messages: | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | | + | |
- | | + | |
- | + | ||
- | | + | |
- | ownmsgnick | + | |
- | ownnick = "%W$*%n"; | + | |
- | + | ||
- | | + | |
- | pubmsgnick | + | |
- | pubnick = "%N$*%n"; | + | |
- | + | ||
- | # public message in channel meant for me, $0 = nick mode, $1 = nick | + | |
- | pubmsgmenick = " | + | |
- | menick = "%Y$*%n"; | + | |
- | + | ||
- | | + | |
- | # $0 = highlight color, $1 = nick mode, $2 = nick | + | |
- | pubmsghinick | + | |
- | + | ||
- | | + | |
- | msgchannel | + | |
- | + | ||
- | # private message, | + | |
- | privmsg = "[%R$0%K(%r$1-%K)%n] "; | + | |
- | + | ||
- | | + | |
- | ownprivmsg = "[%r$0%K(%R$1-%K)%n] "; | + | |
- | + | ||
- | # own private message in query | + | |
- | | + | |
- | ownprivnick = "%W$*%n"; | + | |
- | + | ||
- | # private message in query | + | |
- | | + | |
- | + | ||
- | ## | + | |
- | ## Actions (/ME stuff) | + | |
- | ## | + | |
- | + | ||
- | # used internally by this theme | + | |
- | action_core = "%W * $*%n"; | + | |
- | + | ||
- | # generic one that's used by most actions | + | |
- | action = " | + | |
- | + | ||
- | # own action, both private/ | + | |
- | ownaction = " | + | |
- | + | ||
- | # own action with target, both private/ | + | |
ownaction_target = " | ownaction_target = " | ||
- | + | | |
- | # private action sent by others | + | pvtaction_query = " |
- | | + | pubaction = " |
- | pvtaction_query = " | + | |
- | + | ||
- | # public action sent by others | + | |
- | pubaction = " | + | |
- | + | ||
- | + | ||
- | ## | + | |
- | ## other IRC events | + | |
- | ## | + | |
- | + | ||
- | # whois | + | |
- | whois = "%# $[8]0 : $1-"; | + | |
- | + | ||
- | # notices | + | |
ownnotice = " | ownnotice = " | ||
- | notice = " | + | notice = " |
- | pubnotice_channel = " | + | pubnotice_channel = " |
- | pvtnotice_host = " | + | pvtnotice_host = " |
- | servernotice = "%g!$*%n "; | + | servernotice = "%g!$0-%n "; |
- | + | ||
- | # CTCPs | + | |
ownctcp = " | ownctcp = " | ||
- | ctcp = "%g$*%n"; | + | ctcp = "%g$0-%n"; |
- | + | wallop = "%W$0-%n: "; | |
- | # wallops | + | wallop_nick = "%n$0-"; |
- | wallop = "%W$*%n: "; | + | wallop_action = "%W * $0-%n "; |
- | wallop_nick = "%n$*"; | + | netsplit = "%R$0-%n"; |
- | wallop_action = "%W * $*%n "; | + | netjoin = "%G$0-%n"; |
- | + | names_nick = "[%G$0%g$1-%n] "; | |
- | # netsplits | + | names_users = "$0-"; |
- | netsplit = "%R$*%n"; | + | names_channel = "on %G$0-%n:"; |
- | netjoin = "%C$*%n"; | + | dcc = "%y$0-%n"; |
- | + | dccfile = "%_$0-%_"; | |
- | # /names list | + | dccownmsg = "[%b$0%B(%n$1-%B)] "; |
- | names_prefix = ""; | + | dccownnick = "%W$0-%n"; |
- | names_nick = "[%_$0%_$1-] "; | + | dccownaction = " |
- | names_nick_op = " | + | |
- | names_nick_halfop = " | + | |
- | names_nick_voice = " | + | |
- | names_users = "[%g$*%n]"; | + | |
- | names_channel = "%G$*%n"; | + | |
- | + | ||
- | # DCC | + | |
- | dcc = "%g$*%n"; | + | |
- | dccfile = "%_$*%_"; | + | |
- | + | ||
- | # DCC chat, own msg/action | + | |
- | dccownmsg = "[%r$0%K($1-%K)%n] "; | + | |
- | dccownnick | + | |
- | dccownquerynick | + | |
- | dccownaction = " | + | |
dccownaction_target = " | dccownaction_target = " | ||
- | + | | |
- | # DCC chat, others | + | dccaction = "%W (*dcc*) $0-%n %|"; |
- | | + | sb_background = " |
- | dccquerynick = " | + | sb = "%W[%n$0-%W]%n"; |
- | dccaction = "%W (*dcc*) $*%n %|"; | + | sbmode = " |
- | + | ||
- | ## | + | |
- | ## statusbar | + | |
- | ## | + | |
- | + | ||
- | # default background for all statusbars. You can also give | + | |
- | # the default foreground color for statusbar items. | + | |
- | sb_background = "%4%w"; | + | |
- | + | ||
- | # default backround for " | + | |
- | # | + | |
- | # background for prompt / input line | + | |
- | sb_prompt_bg = " | + | |
- | # background for info statusbar | + | |
- | sb_info_bg = " | + | |
- | # background for topicbar (same default) | + | |
- | # | + | |
- | + | ||
- | # text at the beginning of statusbars. sb-item already puts | + | |
- | # space there,so we don't use anything by default. | + | |
- | sbstart = ""; | + | |
- | # text at the end of statusbars. Use space so that it's never | + | |
- | # used for anything. | + | |
- | sbend = " "; | + | |
- | + | ||
- | topicsbstart = " | + | |
- | topicsbend = " | + | |
- | + | ||
- | prompt = "[$*] "; | + | |
- | + | ||
- | sb = " %c[%n$*%c]%n"; | + | |
- | sbmode = " | + | |
sbaway = " (%GzZzZ%n)"; | sbaway = " (%GzZzZ%n)"; | ||
- | sbservertag = ": | + | sbservertag = ": |
- | | + | |
- | + | sblag = "{sb Lag: $0-}"; | |
- | | + | |
- | + | | |
- | | + | |
- | | + | |
- | # normal text | + | }; |
- | | + | formats = { |
- | # public message | + | |
- | | + | whois = "%W$0 %K[%c$1@$2%K]%: ircname |
- | | + | |
- | | + | |
- | # hilight with specified color, | + | |
- | | + | |
+ | whois_idle = " idle :%W $1 days, $2 hours, $3 mins, $4 secs%n"; | ||
+ | | ||
+ | | ||
+ | whois = "%W$0 %K[%c$1@$2%K]%: | ||
+ | | ||
+ | whois_channels | ||
+ | whois_modes | ||
+ | | ||
+ | whois_fingerprint = " fingerprint :%c $0%n%:End of WHOIS"; | ||
+ | }; | ||
}; | }; | ||
</ | </ |
irssi.1289405649.txt.gz · Last modified: 2020/08/10 02:30 (external edit)