]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/topbar.lua
add gpg-agent to xprofile
[dotfiles.git] / awesome / topbar.lua
index 58c01953877870b8c2353be808a750cc8b6ef4a6..1bc397879b0fef9642a890d0ae237328119cc4c1 100644 (file)
@@ -1,10 +1,13 @@
+-- utils
+local utils = require("utils")
+
 -- Widget and layout library
 local wibox = require("wibox")
 
--- my widgets
-local volume_widget  = require("widgets/volume_widget")
 -- Create a textclock widget
 mytextclock = awful.widget.textclock()
+separator = wibox.widget.textbox()
+separator:set_markup('<span font="Symbola 10" color="#404040">│</span>')
 
 -- {{{ Wibox
 -- Create a wibox for each screen and add it
@@ -86,7 +89,13 @@ 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
-    right_layout:add(volume_widget)
+    right_layout:add(separator)
+    right_layout:add(require("widgets/volume_widget"))
+    if utils.host == "chronos" then
+        right_layout:add(separator)
+        right_layout:add(require("widgets/battery_widget"))
+    end
+    right_layout:add(separator)
     right_layout:add(mytextclock)
     right_layout:add(mylayoutbox[s])