irssi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| irssi [2009/08/05 07:01] – k2patel | irssi [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| /join #< | /join #< | ||
| </ | </ | ||
| + | == list all user == | ||
| + | <code bash> | ||
| + | /who #< | ||
| + | </ | ||
| + | == Give OP to all user == | ||
| + | <code bash> | ||
| + | /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 50: | 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 ==== | ||
| - | <code bash | ~/ | + | <code bash | ~/.irssi/config> |
| + | servers = ( | ||
| + | { address = " | ||
| + | { address = " | ||
| + | { | ||
| + | address = " | ||
| + | chatnet = " | ||
| + | port = " | ||
| + | }, | ||
| + | { address = " | ||
| + | { | ||
| + | address = " | ||
| + | chatnet = " | ||
| + | port = " | ||
| + | use_ssl = " | ||
| + | ssl_verify = " | ||
| + | autoconnect = " | ||
| + | } | ||
| + | ); | ||
| + | |||
| + | chatnets = { | ||
| + | IRCnet = { | ||
| + | type = " | ||
| + | max_kicks = " | ||
| + | max_msgs = " | ||
| + | max_whois = " | ||
| + | max_query_chans = " | ||
| + | }; | ||
| + | EFNet = { | ||
| + | type = " | ||
| + | max_kicks = " | ||
| + | max_msgs = " | ||
| + | max_whois = " | ||
| + | }; | ||
| + | Undernet = { | ||
| + | type = " | ||
| + | max_kicks = " | ||
| + | max_msgs = " | ||
| + | max_whois = " | ||
| + | }; | ||
| + | DALnet = { | ||
| + | type = " | ||
| + | max_kicks = " | ||
| + | max_msgs = " | ||
| + | max_whois = " | ||
| + | }; | ||
| + | QuakeNet = { | ||
| + | type = " | ||
| + | max_kicks = " | ||
| + | max_msgs = " | ||
| + | max_whois = " | ||
| + | } | ||
| + | }; | ||
| + | |||
| + | channels = ( | ||
| + | { name = "# | ||
| + | { name = " | ||
| + | { name = "# | ||
| + | ); | ||
| + | |||
| + | aliases = { | ||
| + | J = " | ||
| + | WJOIN = "join -window"; | ||
| + | WQUERY = "query -window"; | ||
| + | LEAVE = " | ||
| + | BYE = " | ||
| + | EXIT = " | ||
| + | SIGNOFF = " | ||
| + | DESCRIBE = " | ||
| + | DATE = " | ||
| + | HOST = " | ||
| + | LAST = " | ||
| + | SAY = "msg *"; | ||
| + | WI = " | ||
| + | WII = "whois $0 $0"; | ||
| + | WW = " | ||
| + | W = " | ||
| + | N = " | ||
| + | M = " | ||
| + | T = " | ||
| + | C = " | ||
| + | CL = " | ||
| + | K = " | ||
| + | KB = " | ||
| + | KN = " | ||
| + | BANS = " | ||
| + | B = " | ||
| + | MUB = "unban *"; | ||
| + | UB = " | ||
| + | IG = " | ||
| + | UNIG = " | ||
| + | SB = " | ||
| + | UMODE = "mode $N"; | ||
| + | WC = " | ||
| + | WN = " | ||
| + | SV = "say Irssi $J ($V) - http:// | ||
| + | GOTO = "sb goto"; | ||
| + | CHAT = "dcc chat"; | ||
| + | RUN = " | ||
| + | CALC = "exec - if which bc &>/ | ||
| + | SBAR = " | ||
| + | INVITELIST = "mode $C +I"; | ||
| + | Q = " | ||
| + | " | ||
| + | EXEMPTLIST = "mode $C +e"; | ||
| + | ATAG = " | ||
| + | }; | ||
| + | |||
| + | statusbar = { | ||
| + | # formats: | ||
| + | # when using {templates}, | ||
| + | # 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 = " | ||
| + | topicbarend = " | ||
| + | |||
| + | # treated " | ||
| + | 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: | ||
| + | window_empty = "{sb $winref{sbservertag $tag}}"; | ||
| + | prompt = " | ||
| + | prompt_empty = " | ||
| + | topic = " $topic"; | ||
| + | topic_empty = " Irssi v$J - http:// | ||
| + | |||
| + | # all of these treated specially, they' | ||
| + | lag = "{sb Lag: $0-}"; | ||
| + | act = "{sb Act: $0-}"; | ||
| + | more = "-- more --"; | ||
| + | }; | ||
| + | |||
| + | # there' | ||
| + | # 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 " | ||
| + | # contains all the normal items. | ||
| + | window = { | ||
| + | disabled = " | ||
| + | |||
| + | # window, root | ||
| + | type = " | ||
| + | # top, bottom | ||
| + | placement = " | ||
| + | # number | ||
| + | position = " | ||
| + | # active, inactive, always | ||
| + | visible = " | ||
| + | |||
| + | # list of items in statusbar in the display order | ||
| + | items = { | ||
| + | barstart = { priority = " | ||
| + | time = { }; | ||
| + | user = { }; | ||
| + | window = { }; | ||
| + | window_empty = { }; | ||
| + | lag = { priority = " | ||
| + | act = { priority = " | ||
| + | more = { priority = " | ||
| + | barend = { priority = " | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | # statusbar to use in inactive split windows | ||
| + | window_inact = { | ||
| + | type = " | ||
| + | placement = " | ||
| + | position = " | ||
| + | visible = " | ||
| + | items = { | ||
| + | barstart = { priority = " | ||
| + | window = { }; | ||
| + | window_empty = { }; | ||
| + | more = { priority = " | ||
| + | barend = { priority = " | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | # we treat input line as yet another statusbar :) It's possible to | ||
| + | # add other items before or after the input line item. | ||
| + | prompt = { | ||
| + | type = " | ||
| + | placement = " | ||
| + | # we want to be at the bottom always | ||
| + | position = " | ||
| + | visible = " | ||
| + | items = { | ||
| + | prompt = { priority = " | ||
| + | prompt_empty = { priority = " | ||
| + | # treated specially, this is the real input line. | ||
| + | input = { priority = " | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | # topicbar | ||
| + | topic = { | ||
| + | type = " | ||
| + | placement = " | ||
| + | position = " | ||
| + | visible = " | ||
| + | items = { | ||
| + | topicbarstart = { priority = " | ||
| + | topic = { }; | ||
| + | topic_empty = { }; | ||
| + | topicbarend = { priority = " | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | settings = { | ||
| + | core = { | ||
| + | real_name = " | ||
| + | user_name = " | ||
| + | nick = " | ||
| + | awaylog_level = "MSGS HILIGHT"; | ||
| + | awaylog_file = " | ||
| + | }; | ||
| + | " | ||
| + | " | ||
| + | theme = " | ||
| + | autolog = " | ||
| + | autolog_path = " | ||
| + | autolog_level = "ALL -CRAP -CLIENTCRAP -CTCPS"; | ||
| + | completion_auto = " | ||
| + | BEEP_WHEN_AWAY = " | ||
| + | window_auto_change = " | ||
| + | }; | ||
| + | }; | ||
| + | hilights = ( { text = " | ||
| + | logs = { }; | ||
| + | </ | ||
| + | |||
| + | <code bash | ~/ | ||
| + | |||
| + | #### #### | ||
| + | #### ThirdEye 1.4 #### | ||
| + | #### by salo <salo at Xtrmntr.org> | ||
| + | #### #### | ||
| + | replaces = { " | ||
| + | abstracts = { | ||
| + | line_start = "--- "; | ||
| + | timestamp = " | ||
| + | hilight = " | ||
| + | error = " | ||
| + | channel = " | ||
| + | nick = " | ||
| + | nickhost = " | ||
| + | server = " | ||
| + | comment = " | ||
| + | reason = " | ||
| + | mode = " | ||
| + | channick_hilight = " | ||
| + | chanhost_hilight = " | ||
| + | channick = " | ||
| + | chanhost = " | ||
| + | channelhilight = " | ||
| + | ban = " | ||
| + | msgnick = "< | ||
| + | ownnick = " | ||
| + | pubnick = " | ||
| + | menick = " | ||
| + | pubmsgnick = " | ||
| + | pubmsgmenick = " | ||
| + | pubmsghinick = " | ||
| + | ownmsgnick = " | ||
| + | msgchannel = " | ||
| + | privmsg = " | ||
| + | ownprivmsg = " | ||
| + | ownprivnick = " | ||
| + | ownprivmsgnick = " | ||
| + | privmsgnick = " | ||
| + | # ownprivmsgnick = " | ||
| + | # privmsgnick = " | ||
| + | action_core = " | ||
| + | action = " | ||
| + | ownaction = " | ||
| + | ownaction_target = " | ||
| + | pvtaction = "%W (*) $0-%n "; | ||
| + | pvtaction_query = " | ||
| + | pubaction = " | ||
| + | ownnotice = " | ||
| + | notice = " | ||
| + | pubnotice_channel = " | ||
| + | pvtnotice_host = " | ||
| + | servernotice = " | ||
| + | ownctcp = " | ||
| + | ctcp = " | ||
| + | wallop = " | ||
| + | wallop_nick = " | ||
| + | wallop_action = "%W * $0-%n "; | ||
| + | netsplit = " | ||
| + | netjoin = " | ||
| + | names_nick = " | ||
| + | names_users = " | ||
| + | names_channel = "on %G$0-%n:"; | ||
| + | dcc = " | ||
| + | dccfile = " | ||
| + | dccownmsg = " | ||
| + | dccownnick = " | ||
| + | dccownaction = " | ||
| + | dccownaction_target = " | ||
| + | dccmsg = " | ||
| + | dccaction = "%W (*dcc*) $0-%n %|"; | ||
| + | sb_background = " | ||
| + | sb = " | ||
| + | sbmode = " | ||
| + | sbaway = " (%GzZzZ%n)"; | ||
| + | sbservertag = ": | ||
| + | sbmore = "%_-- more --%_"; | ||
| + | sblag = "{sb Lag: $0-}"; | ||
| + | sbmail = "{sb Mail: $0-}"; | ||
| + | sbact_act = "Act: $0-"; | ||
| + | sbact_det = "Det: $0-"; | ||
| + | sbact = "{sb {sbact_act $0}{sbact_det $1}}"; | ||
| + | }; | ||
| + | formats = { | ||
| + | " | ||
| + | whois = "%W$0 %K[%c$1@$2%K]%: | ||
| + | whois_channels = " channels :%c $1%n"; | ||
| + | whois_server = " server | ||
| + | whois_oper = " operator :%W $1 is IRC Operator%n"; | ||
| + | whois_away = " away :%W $1%n"; | ||
| + | whois_idle = " idle :%W $1 days, $2 hours, $3 mins, $4 secs%n"; | ||
| + | }; | ||
| + | " | ||
| + | whois = "%W$0 %K[%c$1@$2%K]%: | ||
| + | whois_realname = " realname | ||
| + | whois_channels = " channels | ||
| + | whois_modes = " modes :%c $0%n"; | ||
| + | whois_idle = " idle :%W $0%n%"; | ||
| + | whois_fingerprint = " fingerprint :%c $0%n%:End of WHOIS"; | ||
| + | }; | ||
| + | }; | ||
| </ | </ | ||
irssi.1249455713.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
