1--DOC_GEN_IMAGE 2--DOC_NO_USAGE 3--DOC_HIDE_ALL 4screen[1]._resize {width = 640, height = 55} 5screen.no_outline = true 6local awful = {tooltip = require("awful.tooltip")} 7local beautiful = require("beautiful") 8 9-- mouse.coords{x=50, y= 10} 10 11awesome.emit_signal("refresh") 12 13local x_offset = 0 14 15for _, width in ipairs{ 1,2,4,6 } do 16 local tt = awful.tooltip { 17 text = "margins: "..width, 18 mode = "mouse", 19 margins_leftright = width, 20 border_color = beautiful.border_color, 21 } 22 tt.bg = beautiful.bg_normal 23 awesome.emit_signal("refresh") 24 tt:show() 25 awesome.emit_signal("refresh") 26 tt.wibox.x = x_offset 27 x_offset = x_offset + 640/5 28end 29 30mouse.coords{x=125, y= 0} 31-- mouse.push_history() 32awesome.emit_signal("refresh") 33