diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-07-03 17:11:07 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-07-03 17:11:07 +0200 |
| commit | 9f8d13bafb632445df1c6049f1e35886e567b970 (patch) | |
| tree | 068d915133edb9a8ffb974ad2e35ba65c133e30d /home/config | |
| parent | bb7405bb6638fad227686d66901212c7dd62aa96 (diff) | |
home: i3: bar: create wrapper of icon + text instead of appending
Diffstat (limited to 'home/config')
| -rw-r--r-- | home/config/i3/bar/i3status.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
