From 139605e5f4c408cdbe592a2b845e4b7b169a566a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 15 Jun 2013 21:05:08 +0200 Subject: [PATCH] ad a separator between widgets --- awesome/topbar.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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]) -- 2.48.1