summaryrefslogtreecommitdiff
path: root/bar.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bar.lua')
-rw-r--r--bar.lua19
1 files changed, 8 insertions, 11 deletions
diff --git a/bar.lua b/bar.lua
index e08c799..baaf60e 100644
--- a/bar.lua
+++ b/bar.lua
@@ -15,17 +15,15 @@ local tasklist = require("widgets.tasklist")
local widget_volume = volume_control.textbox
-- store widgets here
-local spacing = 8
-
local widgets = {
temperature_file = nil;
- spacing = spacing, -- constant
+ spacing = beautiful.margin_leftright, -- constant
layoutlist = wibox.widget {
layout = wibox.layout.fixed.horizontal,
buttons = layout_buttons,
wibox.container.margin(
classiclayoutbox(s),
- spacing, spacing, 0, 0
+ beautiful.margin_leftright, beautiful.margin_leftright, 0, 0
),
},
taglist = function(s) return awful.widget.taglist {
@@ -34,8 +32,7 @@ local widgets = {
buttons = taglist_buttons,
} end,
tasklist = tasklist,
- textclock = {
- widget = wibox.widget.textclock,
+ textclock = wibox.widget.textclock {
format = "%A, %B %-e, %-I:%M %p",
font = beautiful.textclock_font,
},
@@ -69,7 +66,7 @@ local widgets = {
-- left widget group func
function widgets.left_widgets(s) return wibox.widget {
layout = wibox.layout.fixed.horizontal,
- spacing = spacing,
+ spacing = beautiful.margin_leftright,
{
layout = wibox.layout.fixed.horizontal,
widgets.layoutlist,
@@ -89,7 +86,7 @@ function widgets.right_widgets(s) return wibox.widget {
layout = wibox.layout.fixed.horizontal,
{
layout = wibox.layout.fixed.horizontal,
- spacing = spacing * 2,
+ spacing = beautiful.margin_leftright * 2,
{
layout = wibox.layout.fixed.horizontal,
widgets.cpu,
@@ -102,7 +99,7 @@ function widgets.right_widgets(s) return wibox.widget {
{
widget = wibox.widget.separator,
opacity = 0,
- forced_width = spacing
+ forced_width = beautiful.margin_leftright
},
--mylauncher,
} end
@@ -119,11 +116,11 @@ awful.screen.connect_for_each_screen(function (s)
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
expand = "none",
- spacing = spacing,
+ spacing = beautiful.margin_leftright,
widgets.left_widgets(s),
wibox.container.margin(
widgets.middle_widgets(s),
- spacing, spacing, 0, 0
+ beautiful.margin_leftright, beautiful.margin_leftright, 0, 0
),
widgets.right_widgets(s),
}