Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pcall (require, "luarocks.loader")
- local awful = require("awful")
- local gears = require("gears")
- local container = require("empty-container")
- local wibox = require("wibox")
- local naughty = require("naughty")
- local display_button = wibox{
- visible = true,
- bg = "#19191900",
- ontop = true,
- height = 5,
- width = 5,
- widget = wibox.widget.textbox("aaa")
- --text = mytextclock,
- }
- local button = {}
- display_button:connect_signal("button:press", function(c, _, _, button)
- if (button == 1) or (button == 3) then
- container.container.visible = not(container.container.visible)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment