mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
feat(temp): Add temperature tokens without unit
This commit is contained in:
parent
0849d05469
commit
e4634ce95f
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ namespace modules {
|
|||
label->reset_tokens();
|
||||
label->replace_token("%temperature-f%", to_string(m_temp_f) + "°F");
|
||||
label->replace_token("%temperature-c%", to_string(m_temp) + "°C");
|
||||
label->replace_token("%temperature-f-n%", to_string(m_temp_f));
|
||||
label->replace_token("%temperature-c-n%", to_string(m_temp));
|
||||
label->replace_token("%temperature%", to_string(m_temp) + "°C");
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue