-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidgets.lua
35 lines (30 loc) · 904 Bytes
/
widgets.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local widgets = {}
-- Keyboard map indicator and switcher
widgets.mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- function separator_template(s)
-- return wibox.widget {
-- span_ratio = 1,
-- shape = gears.shape.rectangle,
-- color = gears.color.create_solid_pattern(beautiful.separator_color),
-- widget = wibox.widget.separator
-- }
-- end
function widgets.separator_template(s,textBool)
local text = ""
if textBool then
text = "ana <3"
end
local textbox = wibox.widget {
align = 'center',
valign = 'center',
markup = text,
color = gears.color.create_solid_pattern(beautiful.separator_color),
widget = wibox.widget.textbox
}
local background = wibox.container.background(textbox,beautiful.separator_color)
return background
end
-- Create a textclock widget
widgets.mytextclock = wibox.widget.textclock()
return widgets