2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_HIDE
|
2016-05-23 09:43:25 +02:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local gears = {shape = require("gears.shape")} --DOC_HIDE
|
|
|
|
local beautiful = require("beautiful") --DOC_HIDE
|
|
|
|
|
2019-04-05 22:52:01 +02:00
|
|
|
local function create_arrow(text) --DOC_HIDE
|
|
|
|
return { --DOC_HIDE
|
|
|
|
{ --DOC_HIDE
|
|
|
|
{ --DOC_HIDE
|
|
|
|
text = text, --DOC_HIDE
|
|
|
|
align = "center", --DOC_HIDE
|
|
|
|
valign = "center", --DOC_HIDE
|
|
|
|
widget = wibox.widget.textbox, --DOC_HIDE
|
|
|
|
}, --DOC_HIDE
|
|
|
|
shape = gears.shape.arrow, --DOC_HIDE
|
|
|
|
bg = beautiful.bg_normal, --DOC_HIDE
|
|
|
|
border_color = beautiful.border_color, --DOC_HIDE
|
|
|
|
border_width = beautiful.border_width, --DOC_HIDE
|
|
|
|
widget = wibox.container.background --DOC_HIDE
|
|
|
|
}, --DOC_HIDE
|
|
|
|
strategy = 'exact', --DOC_HIDE
|
|
|
|
width = 70, --DOC_HIDE
|
|
|
|
height = 70, --DOC_HIDE
|
|
|
|
widget = wibox.container.constraint --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
|
|
|
end --DOC_HIDE
|
2016-05-23 09:43:25 +02:00
|
|
|
|
|
|
|
local normal = create_arrow("Normal")
|
2016-11-21 22:38:23 +01:00
|
|
|
|
2016-05-23 09:43:25 +02:00
|
|
|
local north = wibox.container {
|
|
|
|
create_arrow("North"),
|
|
|
|
direction = "north",
|
|
|
|
widget = wibox.container.rotate
|
|
|
|
}
|
2016-11-21 22:38:23 +01:00
|
|
|
|
2016-05-23 09:43:25 +02:00
|
|
|
local south = wibox.container {
|
|
|
|
create_arrow("South"),
|
|
|
|
direction = "south",
|
|
|
|
widget = wibox.container.rotate
|
|
|
|
}
|
2016-11-21 22:38:23 +01:00
|
|
|
|
2016-05-23 09:43:25 +02:00
|
|
|
local east = wibox.container {
|
|
|
|
create_arrow("East"),
|
|
|
|
direction = "east",
|
|
|
|
widget = wibox.container.rotate
|
|
|
|
}
|
2016-11-21 22:38:23 +01:00
|
|
|
|
2016-05-23 09:43:25 +02:00
|
|
|
local west = wibox.container {
|
|
|
|
create_arrow("West"),
|
|
|
|
direction = "west",
|
|
|
|
widget = wibox.container.rotate
|
|
|
|
}
|
|
|
|
|
|
|
|
parent : setup { --DOC_HIDE
|
|
|
|
normal, --DOC_HIDE
|
|
|
|
north, --DOC_HIDE
|
|
|
|
south, --DOC_HIDE
|
|
|
|
east, --DOC_HIDE
|
|
|
|
west, --DOC_HIDE
|
|
|
|
spacing = 10, --DOC_HIDE
|
|
|
|
layout = wibox.layout.fixed.horizontal --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|