Skip to content
oakkitten edited this page Feb 11, 2021 · 9 revisions
Can I hide a buffer in Weechat-Android?

Yes, execute the following in the buffer: /buffer set localvar_set_relay hard-hide

I'm missing highlights if I leave a buffer open in WeeChat, as it thinks that i'm still reading it

One of the surest ways to mend that is to switch to core.weechat buffer after some period of inactivity:

/trigger addreplace idle_timer timer 60000;0;0               
/trigger set idle_timer conditions ${info:inactivity} >= 600 
/trigger set idle_timer command /buffer weechat              
I don't see date change messages

Relay is supposed to generate that message itself. Weechat-Android doesn't, but you can apply the following workaround:

/set weechat.look.day_change off
/alias add allhuman /allchan $*;/allpv $*
/trigger addreplace date-change signal day_changed "" "" "/allhuman /eval /print \--\t${date:%a, %d %b %Y}"

You can customize the date (see http://strftime.org/) if you want or add colors (e.g. ${color:240})

How do I tell apart channels that have the same name?

When you are on different networks, you can be in two channels that share the same name. As the buffer list doesn't display network names, telling them apart could become an issue. It might be a good idea to rename one of the channels:

/buffer set short_name #new-name

This name is arbitrary and can contain spaces and even emoji! You can help WeeChat to remember this setting using buffer_autoset.py

Samsung Androids killing the background service when power save is enabled

Samsung phones running Android 6 (marshmallow), including the Galaxy S7 and S7 Edge, will randomly disconnect when the device is set to the first level of power save and the screen is off. This issue causes alerts to not be received.

To avoid this problem, 3 settings are needed:

  • settings/battery/power saving mode/restrict all background data=off
  • settings/battery/app power saving/detail/weechat=turned off
  • settings/applications/application manager/weechat/battery/optimize battery usage=don't optimize App power saving can be left on for other applications.
I can't connect from home, but can connect from work/using cellular data!

It's likely that you are connecting to your external ip/host, but your router doesn't forward it to the device on your home network. You must enable hairpinning (or NAT loopback) on your router. Some routers don't support it all, in which case you might want to run your own DNS service that resolves your server's hostname to a local address.

What does the Handshake option do?

todo