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
+
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
 +
/trigger add 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"
 +
turn off buffer list on small screens
 +
/trigger add 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"

Revision as of 20:15, 14 July 2015