mirror of
https://github.com/chubin/wttr.in
synced 2024-12-26 11:43:08 +00:00
added recommendations about emoji support in terminal (#312)
This commit is contained in:
parent
278c6550e1
commit
28a17b17f9
1 changed files with 38 additions and 0 deletions
38
README.md
38
README.md
|
@ -174,6 +174,44 @@ set -g status-right "$WEATHER ..."
|
||||||
```
|
```
|
||||||
![wttr.in in tmux status bar](https://wttr.in/files/example-tmux-status-line.png)
|
![wttr.in in tmux status bar](https://wttr.in/files/example-tmux-status-line.png)
|
||||||
|
|
||||||
|
To see emojis in terminal, you need:
|
||||||
|
|
||||||
|
1. Terminal support for emojis (was added to Cairo 1.15.8);
|
||||||
|
2. Font with emojis support.
|
||||||
|
|
||||||
|
For the Emoji font, we recommend *Noto Color Emoji*, and a good alternative option would be the *Emoji One* font;
|
||||||
|
both of them support all necessary emoji glyphs.
|
||||||
|
|
||||||
|
Font configuration:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cat ~/.config/fontconfig/fonts.conf
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>monospace</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Noto Color Emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
</fontconfig>
|
||||||
|
```
|
||||||
|
|
||||||
|
(to apply the configuration, run `fc-cache -f -v`)
|
||||||
|
|
||||||
## Moon phases
|
## Moon phases
|
||||||
|
|
||||||
wttr.in can also be used to check the phase of the Moon. This example shows how to see the current Moon phase:
|
wttr.in can also be used to check the phase of the Moon. This example shows how to see the current Moon phase:
|
||||||
|
|
Loading…
Reference in a new issue