From 9f8d13bafb632445df1c6049f1e35886e567b970 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sun, 3 Jul 2022 17:11:07 +0200 Subject: home: i3: bar: create wrapper of icon + text instead of appending --- home/config/i3/bar/i3status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/config/i3/bar/i3status.go') diff --git a/home/config/i3/bar/i3status.go b/home/config/i3/bar/i3status.go index 65786fd..ae2e7c7 100644 --- a/home/config/i3/bar/i3status.go +++ b/home/config/i3/bar/i3status.go @@ -132,7 +132,7 @@ func main() { var colorScheme string switch { case w.Connected(): - output = wifiOnIcon.AppendTextf(" %s", w.SSID) + output = pango.New(wifiOnIcon, pango.Textf(" %s", w.SSID)) colorScheme = "good" case w.Connecting(): output = wifiRefreshIcon @@ -156,7 +156,7 @@ func main() { if len(s.IPs) > 0 { ip = s.IPs[0].String() } - output = ethernetCableOnIcon.AppendTextf(" %s", ip) + output = pango.New(ethernetCableOnIcon, pango.Textf(" %s", ip)) colorScheme = "good" case s.Connecting(): output = ethernetCableOnIcon -- cgit v1.2.3