From dda2169a287224783c0faf9c6bc8b8e4ee5b87eb Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 19 Aug 2022 18:40:48 -0500 Subject: parse net from crc --- rc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index d8e4edd..c32f4fc 100644 --- a/rc.lua +++ b/rc.lua @@ -271,6 +271,8 @@ awful.screen.connect_for_each_screen(function(s) -- Create the wibox s.mywibox = awful.wibar({ position = "top", screen = s, height = 24}) + net = crcparse("net") + if is_linux() then -- Add widgets to the wibox s.mywibox:setup { @@ -286,7 +288,7 @@ awful.screen.connect_for_each_screen(function(s) layout = wibox.layout.fixed.horizontal, mpd_widget, net_speed { - interface = "wlan0" + interface = net }, ram_widget(), cpu_widget(), -- cgit v1.2.3