138
edits
No edit summary |
No edit summary |
||
| (20 intermediate revisions by 5 users not shown) | |||
| Line 4: | Line 4: | ||
== Running Weechat == | == Running Weechat == | ||
weechat is installed on azazel, the main login box. | |||
butlerx has written a bash script to get you started with weechat, run: | |||
~edu/confweechat | |||
/ | |||
Copy and paste that into your terminal command line, hit enter, and give yourself a pat on the back. | Copy and paste that into your terminal command line, hit enter, and give yourself a pat on the back. | ||
If you'd like to have a look before you run it, which you should its on [[https://github.com/redbrick/eduScripts/blob/master/confweechat Github]] | |||
Now just run | |||
weechat | |||
to chat to everyone | |||
== Basic use == | == Basic use == | ||
| Line 79: | Line 64: | ||
weechat has a mobile app you can get from the [https://play.google.com/store/apps/details?id=com.ubergeek42.WeechatAndroid google play store] or from the [https://github.com/ubergeek42/weechat-android github]. | weechat has a mobile app you can get from the [https://play.google.com/store/apps/details?id=com.ubergeek42.WeechatAndroid google play store] or from the [https://github.com/ubergeek42/weechat-android github]. | ||
Before we set up the app we need to go too weechat on the terminal and type in: | Before we set up the app we need to go too weechat on the terminal and type in: | ||
/relay add weechat 1337 | /relay add weechat 1337 (choose your own port) | ||
then we need to set the password | then we need to set the password | ||
/set relay.network.password "your-secret-password" | /set relay.network.password "your-secret-password" | ||
| Line 121: | Line 106: | ||
=== Make urls underlined and blue === | === Make urls underlined and blue === | ||
/trigger addreplace url_color modifier "weechat_print" "${tg_tags} !~ irc_quit" ";[a-z]+://\S+;${color:32}${color:underline}${re:0}${color:-underline}${color:reset};" "" | /trigger addreplace url_color modifier "weechat_print" "${tg_tags} !~ irc_quit" ";[a-z]+://\S+;${color:32}${color:underline}${re:0}${color:-underline}${color:reset};" "" | ||
=== Strip items such as | ===Strip items such as time from screen on smaller screens === | ||
/trigger addreplace resize_small_timestamp signal signal_sigwinch "${info:term_width} < 200" "" "/set weechat.look.buffer_time_format """ | /trigger addreplace resize_small_timestamp signal signal_sigwinch "${info:term_width} < 200" "" "/set weechat.look.buffer_time_format \"\"" | ||
=== | ===add items such as time from screen on bigger screens === | ||
/trigger addreplace resize_big_timestamp signal signal_sigwinch "${info:term_width} >=200" "" "/set weechat.look.buffer_time_format %H:%M:%S " | |||
/trigger addreplace | ===Redact messages from specific users=== | ||
=== | Helps keep better track of the conversation than if others are replying to messages you can't see. This example replaces messages from user1 and user2 with "[REDACTED]" | ||
/ | |||
/trigger addreplace shut_up modifier weechat_print "${tg_tags} =~ ,irc_privmsg, && ${tg_tags} =~ ,nick_(user1|user2|user3)," "/.*/${tg_prefix}\t${color:238}[REDACTED]" | |||
==Conditions== | |||
Conditions can be used to customize weechat depending on certain variables | |||
===Turn off nicklist on small windows=== | |||
/set weechat.bar.nicklist.conditions "${nicklist} && (${window.win_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)" | |||
===Hide buffer list on small terminals=== | |||
/set weechat.bar.buffers.conditions "${info:term_width} > 100" | |||
===Turn off status on nonactive windows === | |||
/set weechat.bar.status.conditions "${active}" | |||
== Spell Checker == | == Spell Checker == | ||
edits