From: Samir Benmendil Date: Sat, 15 Jun 2013 19:05:08 +0000 (+0200) Subject: ad a separator between widgets X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/139605e5f4c408cdbe592a2b845e4b7b169a566a?ds=sidebyside;hp=-c ad a separator between widgets --- 139605e5f4c408cdbe592a2b845e4b7b169a566a diff --git a/awesome/topbar.lua b/awesome/topbar.lua index e6fa423..5f50ec8 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -13,6 +13,8 @@ local network_widget = require("widgets/network_widget") -- Create a textclock widget mytextclock = awful.widget.textclock() +separator = wibox.widget.textbox() +separator:set_markup('│') -- {{{ Wibox -- Create a wibox for each screen and add it @@ -94,11 +96,15 @@ 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(separator) right_layout:add(network_widget) + right_layout:add(separator) right_layout:add(volume_widget) if utils.host == "chronos" then + right_layout:add(separator) right_layout:add(battery_widget) end + right_layout:add(separator) right_layout:add(mytextclock) right_layout:add(mylayoutbox[s])