summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-08-19 18:40:48 -0500
committerzachir <zachir@librem.one>2022-08-19 18:40:48 -0500
commitdda2169a287224783c0faf9c6bc8b8e4ee5b87eb (patch)
tree72eede6032a8dc68c32b39c60c35716ca469a9b8
parente400a15ac01ce0f690164b2e71d8d3cf34316a02 (diff)
parse net from crc
-rw-r--r--rc.lua4
1 files changed, 3 insertions, 1 deletions
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(),