31 lines
740 B
Lua
31 lines
740 B
Lua
|
--DOC_GEN_IMAGE
|
||
|
--DOC_NO_USAGE
|
||
|
--DOC_HIDE_ALL
|
||
|
screen[1]._resize {width = 300, height = 75}
|
||
|
screen.no_outline = true
|
||
|
local awful = {tooltip = require("awful.tooltip")}
|
||
|
local beautiful = require("beautiful")
|
||
|
local wibox = require("wibox")
|
||
|
|
||
|
-- mouse.coords{x=50, y= 10}
|
||
|
|
||
|
local wb = wibox {
|
||
|
width = 100, height = 44, x = 100, y = 10, visible = true, bg = "#00000000"
|
||
|
}
|
||
|
|
||
|
awesome.emit_signal("refresh")
|
||
|
|
||
|
for _, side in ipairs{ "top_left", "bottom_left", "top_right", "bottom_right"} do
|
||
|
local tt = awful.tooltip {
|
||
|
text = side,
|
||
|
objects = {wb},
|
||
|
mode = "mouse",
|
||
|
align = side,
|
||
|
}
|
||
|
tt.bg = beautiful.bg_normal
|
||
|
end
|
||
|
|
||
|
mouse.coords{x=125, y= 35}
|
||
|
mouse.push_history()
|
||
|
awesome.emit_signal("refresh")
|