]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/topbar.lua
fix battery widget
[dotfiles.git] / awesome / topbar.lua
index eea23d648ca142c69019140351f5d010984401e8..790640234479b3870b5de4857b2779dc70e5c56e 100644 (file)
@@ -6,9 +6,12 @@ local wibox = require("wibox")
 
 -- my widgets
 local volume_widget  = require("widgets/volume_widget")
 
 -- my widgets
 local volume_widget  = require("widgets/volume_widget")
+local battery_widget = { }
 if utils.host == "chronos" then
 if utils.host == "chronos" then
-    local battery_widget = require("widgets/battery_widget")
+    battery_widget = require("widgets/battery_widget")
 end
 end
+local network_widget = require("widgets/network_widget")
+
 -- Create a textclock widget
 mytextclock = awful.widget.textclock()
 
 -- Create a textclock widget
 mytextclock = awful.widget.textclock()
 
@@ -92,6 +95,7 @@ for s = 1, screen.count() do
     -- Widgets that are aligned to the right
     local right_layout = wibox.layout.fixed.horizontal()
     if s == 1 then right_layout:add(wibox.widget.systray()) end
     -- Widgets that are aligned to the right
     local right_layout = wibox.layout.fixed.horizontal()
     if s == 1 then right_layout:add(wibox.widget.systray()) end
+    right_layout:add(network_widget)
     right_layout:add(volume_widget)
     if utils.host == "chronos" then
         right_layout:add(battery_widget)
     right_layout:add(volume_widget)
     if utils.host == "chronos" then
         right_layout:add(battery_widget)