]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/topbar.lua
awesome: calendar widget
[dotfiles.git] / awesome / topbar.lua
index eea23d648ca142c69019140351f5d010984401e8..638e9675edae866cf4048e4254dbf4310619d0d8 100644 (file)
@@ -4,15 +4,11 @@ local utils = require("utils")
 -- Widget and layout library
 local wibox = require("wibox")
 
--- my widgets
-local volume_widget  = require("widgets/volume_widget")
-if utils.host == "chronos" then
-    local battery_widget = require("widgets/battery_widget")
-end
 -- Create a textclock widget
-mytextclock = awful.widget.textclock()
+separator = wibox.widget.textbox()
+separator:set_markup('<span font="Symbola 10" color="#404040">│</span>')
 
--- {{{ Wibox
+-- Wibox {{{1
 -- Create a wibox for each screen and add it
 mywibox = {}
 mypromptbox = {}
@@ -85,18 +81,22 @@ for s = 1, screen.count() do
 
     -- Widgets that are aligned to the left
     local left_layout = wibox.layout.fixed.horizontal()
-    left_layout:add(mylauncher)
+    -- left_layout:add(mylauncher)
     left_layout:add(mytaglist[s])
     left_layout:add(mypromptbox[s])
 
     -- 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/awesompd"))
+    right_layout:add(require("widgets/volume_widget"))
     if utils.host == "chronos" then
-        right_layout:add(battery_widget)
+        right_layout:add(separator)
+        right_layout:add(require("widgets/battery_widget"))
     end
-    right_layout:add(mytextclock)
+    right_layout:add(separator)
+    right_layout:add(require("widgets/calendar"))
     right_layout:add(mylayoutbox[s])
 
     -- Now bring it all together (with the tasklist in the middle)
@@ -107,4 +107,3 @@ for s = 1, screen.count() do
 
     mywibox[s]:set_widget(layout)
 end
--- }}}