mirror of
https://github.com/chubin/wttr.in
synced 2024-11-14 16:17:19 +00:00
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
This commit is contained in:
parent
60e1a3bf68
commit
9a579eacfd
1 changed files with 7 additions and 5 deletions
12
README.md
12
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
|
||||
|
|
Loading…
Reference in a new issue