diff options
author | Teddy Wing | 2023-12-10 01:13:09 +0100 |
---|---|---|
committer | Teddy Wing | 2023-12-10 01:13:09 +0100 |
commit | 27b1c7201747ab2dbbed8b07d4986a9049936baa (patch) | |
tree | 08ffbbd5e1e805475ba185f74c8778de5ad58946 | |
parent | 54cf5f5cf1f11e14d053b5f33db87de5cab04a20 (diff) | |
download | weechat-activity-bar-27b1c7201747ab2dbbed8b07d4986a9049936baa.tar.bz2 |
activity_bar.pl: Add documentation about terminal focus handling
-rw-r--r-- | activity_bar.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/activity_bar.pl b/activity_bar.pl index 8f576c3..1b5e5b0 100644 --- a/activity_bar.pl +++ b/activity_bar.pl @@ -32,8 +32,18 @@ weechat::hook_command( 'activity_bar', 'Activity Bar commands', '[clear] | [enable|disable]', - 'clear: change AnyBar icon to hollow -enable: enable activity notification + 'To disable activity notifications when WeeChat is focused, turn on terminal focus events: + + /set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n" + /trigger add reset_focus signal "quit" "" "" "/print -stdout \033[?1004l\n" + +Then disable activity_bar on focus, and enable it on unfocus: + + /key bind meta2-I /activity_bar disable + /key bind meta2-O /activity_bar enable + + clear: change AnyBar icon to hollow + enable: enable activity notification disable: clear the AnyBar icon and disable activity notification', 'clear || enable |