Difference between revisions of "Weechat"

From Redbrick Wiki
Jump to navigation Jump to search
Line 137: Line 137:
  
 
=== Triggers ===
 
=== Triggers ===
Turn any line with "nsfw" in it bright red
+
 
 +
==== Turn any line with "nsfw" in it bright red ====
 
  /trigger addreplace nsfw modifier weechat_print "${tg_notify} && ${tg_message_nocolor} =~ .*nsfw.*" "/(.*)/${tg_prefix}\t${color:red}!NSFW! ${tg_message}"
 
  /trigger addreplace nsfw modifier weechat_print "${tg_notify} && ${tg_message_nocolor} =~ .*nsfw.*" "/(.*)/${tg_prefix}\t${color:red}!NSFW! ${tg_message}"
Strip items such as buffer list and nick list from screen on smaller screens
+
==== 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};" ""
 +
==== Strip items such as buffer list and nick list 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 """
turn of nicklist on smaller screens
+
==== turn off nicklist on smaller screens ====
  /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
+
  /trigger addreplace resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
  /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
+
  /trigger addreplace resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
turn off buffer list on small screens
+
==== turn off buffer list on small screens ====
  /trigger add resize_small_buffer signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide buffer"
+
  /trigger addreplace resize_small_buffer signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide buffer"
  /trigger add resize_big_buffer signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show buffer"
+
  /trigger add replace resize_big_buffer signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show buffer"

Revision as of 23:25, 14 July 2015