From 9a579eacfdbeca5e9f4ff9e115b13a84391f08c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 24 May 2023 19:43:34 +0200 Subject: [PATCH] Improve WeeChat commands Changes: - use /mute command to remove changes on option - use /item command to create a custom item - refresh item in the alias - add spacer in status bar so the item is right-aligned - run command /wttr immediately --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 52e4878..c0aa6c9 100644 --- a/README.md +++ b/README.md @@ -227,17 +227,19 @@ set -g status-right "$WEATHER ..." ``` ![wttr.in in tmux status bar](https://wttr.in/files/example-tmux-status-line.png) -### Weechat +### WeeChat -To embed in to an IRC ([Weechat](https://github.com/weechat/weechat)) client's existing status bar: +To embed in to an IRC ([WeeChat](https://github.com/weechat/weechat)) client's existing status bar: ``` -/alias add wttr /exec -pipe "/set plugins.var.python.text_item.wttr all" url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s +/alias add wttr /exec -pipe "/mute /set plugins.var.wttr" url:wttr.in/Montreal?format=%l:+%c+%f+%h+%p+%P+%m+%w+%S+%s;/wait 3 /item refresh wttr /trigger add wttr timer 60000;0;0 "" "" "/wttr" -/eval /set weechat.bar.status.items ${weechat.bar.status.items},wttr +/item add wttr "" "${plugins.var.wttr}" +/eval /set weechat.bar.status.items ${weechat.bar.status.items},spacer,wttr /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins};/wttr +/wttr ``` -![wttr.in in weechat status bar](https://i.imgur.com/IyvbxjL.png) +![wttr.in in WeeChat status bar](https://i.imgur.com/XkYiRU7.png) ### conky