diff options
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -56,9 +56,13 @@ local layouts = menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} --- {{{ Wibox --- Create a textclock widget -mytextclock = wibox.widget.textclock() +-- Panel + +-- clock, shared among all screens +local clock_time = wibox.widget.textclock("<span size=\"18000\">%H:%M</span>", 20) +local clock_date = wibox.widget.textclock("<span size=\"12000\">%a %F</span>", 60) +clock_time:set_align("center") +clock_date:set_align("center") -- Create a wibox for each screen and add it mywibox = {} @@ -99,8 +103,10 @@ for s in screen do -- Widgets that are aligned to the right local right_layout = wibox.layout.fixed.vertical() if s.index == 1 then right_layout:add(wibox.widget.systray()) end - right_layout:add(mytextclock) + right_layout:add(layoutbox) + right_layout:add(clock_time) + right_layout:add(clock_date) -- Now bring it all together (with the tasklist in the middle) local layout = wibox.layout.align.vertical() @@ -112,7 +118,6 @@ for s in screen do mywibox[s] = awful.wibar({ position = "right", screen = s, width = 128 }) mywibox[s]:set_widget(layout) end --- }}} clientbuttons = gears.table.join( |