summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rc.lua')
-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(),