Soundtoxin

[GUIDE] Irssi and IRC Basics

May 14th, 2018
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. important commands:
  2. /set autolog on # enable logging
  3. /connect # connect to a new IRC server
  4. /disconnect # disconnect from the current server
  5. /join # join a new channel on the current server
  6. /leave # leave the current channel
  7. /quit # completely quit irssi
  8. /away # follow this with some text to set an away message
  9. /nick # set your nick
  10. /names # check who is in the channel you're in
  11. /msg # nick, then message to send someone a message without switching windows
  12. /query, /q # open a new window to have a conversation with a specific person
  13. /wc # short for /window close, this closes the current window
  14. /window # create, resize, split windows
  15. /window move # followed by a number, this will most your current window's position
  16. /exec -o # output a shell command as an irc message, try not to spam large things
  17. /set # from status window, you can check values you can configure
  18. /save # changes settings changed, such as with /set ____
  19. /help # learn the list of commands, or learn more about a specific command
  20. /network list # list configured networks
  21. /server list # list configured servers
  22. /whois # find info on a user, appears in status window, or their query if open
  23. /win # change to a window by command instead of keypress, /win list lists windows
  24. /hilight # add a word to your hilights
  25. /dehilight # remove a word from your hilights
  26.  
  27. binds:
  28. note: if alt does not work, press the escape key, then let go and press the other key
  29. alt-n, alt-p # short for next and previous, cycles either direction through windows
  30. alt-# # go to a specific window by its number, the top row of letters works for 11-19
  31. alt-arrows # same as next and previous, but up and down also work in the case of splits
  32. alt-a # switches to a channel with new "alerts" (messages), you can hold it also
  33. pgup, pgdn # move up and down through the scrollback of the currently selected channel
  34. ctrl-x # changes your selected server, mostly used on your status channel
  35. ctrl-c # followed by a number, color your message. e.g. ^c4test makes "test" appear in red
  36. ctrl-b # bold text, to get around the tmux interference, press ctrl-b twice in a row
  37.  
  38. I recommend running irssi in tmux so that it may stay running while you detach, and so multiple clients can connect at once.
  39. You can find perl scripts to enhance the client here: https://scripts.irssi.org/
  40. hilightwin https://scripts.irssi.org/scripts/hilightwin.pl # create a window for hilights
  41. nickcolor https://scripts.irssi.org/scripts/nickcolor.pl # give users different color nicks
  42. place scripts in ~/.irssi/scripts/autorun/ and type /run autorun/hilightwin.pl in irssi to load hilightwin
  43.  
  44. To get hilightwin working, do the following:
  45. /window new split
  46. /window name hilight
  47. /window size 6 # choose a size you like
  48. you should now get messages appearing in the hilight window when your nick is said, or any other alert words
  49.  
  50. Setting up automatic connections:
  51. /server add -auto -network NAME irc.blank.net 6667
  52. /network add -autosendcmd "/^msg nickserv ident pass;wait 2000" ExampleNet
  53. example:
  54. /server add -auto -network Freenode irc.freenode.net 6667
  55. /server add -auto -network Rizon irc.rizon.net 6667
  56. /channel add -auto #baot Rizon
  57. /channel add -auto #guix Freenode
  58. /network add -autosendcmd "/msg nickserv identify secretpassword;wait 2000" Rizon
  59.  
  60. join the channels if you didn't already, they'll be joined automatically next time your start irssi
  61. re-order the windows how you like with /window move #. the numbers are shown on the bottom bar
  62. once you're done, use '/layout save' and '/save' to save these settings and window positions
Advertisement
Add Comment
Please, Sign In to add comment