Guest User

day_button

a guest
Sep 20th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. pcall (require, "luarocks.loader")
  2. local awful = require("awful")
  3. local gears = require("gears")
  4. local container = require("empty-container")
  5. local wibox = require("wibox")
  6. local naughty = require("naughty")
  7.  
  8. local display_button = wibox{
  9.   visible = true,
  10.   bg = "#19191900",
  11.   ontop = true,
  12.   height = 5,
  13.   width = 5,
  14.   widget = wibox.widget.textbox("aaa")
  15.   --text = mytextclock,
  16. }
  17.  
  18. local button = {}
  19.  
  20. display_button:connect_signal("button:press", function(c, _, _, button)
  21.     if (button == 1) or (button == 3) then
  22.       container.container.visible = not(container.container.visible)
  23.     end
  24.   end)
Advertisement
Add Comment
Please, Sign In to add comment