mirror of
https://github.com/polybar/polybar.git
synced 2026-02-24 22:35:49 +00:00
feat(network): Add mac address token (#2569)
* Add mac address option * Add error handling * Address changes * Move outside of for loop * Update changelog
This commit is contained in:
@ -154,6 +154,7 @@ namespace modules {
|
||||
label->reset_tokens();
|
||||
label->replace_token("%ifname%", m_interface);
|
||||
label->replace_token("%local_ip%", network->ip());
|
||||
label->replace_token("%mac%", network->mac());
|
||||
label->replace_token("%local_ip6%", network->ip6());
|
||||
label->replace_token("%upspeed%", upspeed);
|
||||
label->replace_token("%downspeed%", downspeed);
|
||||
|
||||
Reference in New Issue
Block a user