1
0
Fork 0
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:
patrick96 2017-12-10 11:01:58 +01:00 committed by NBonaparte
parent 0849d05469
commit e4634ce95f

View file

@ -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");
};