dotfiles/.config/awesome/ui/top-panel/widgets/menu.lua

25 lines
519 B
Lua
Raw Normal View History

2024-02-19 19:41:33 -08:00
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
local beautiful = require("beautiful")
local helpers = require("helpers")
-- Menu
2024-02-19 19:41:33 -08:00
local menu = wibox.widget({
{
2024-02-19 19:41:33 -08:00
font = beautiful.font_name .. "16",
markup = "󰜬",
widget = wibox.widget.textbox(),
},
bottom = 2,
widget = wibox.container.margin,
2024-02-19 19:41:33 -08:00
})
helpers.ui.add_hover_cursor(menu, "hand2")
2024-02-19 19:41:33 -08:00
menu:buttons(gears.table.join(awful.button({}, 1, function()
awesome.emit_signal("sidebar::toggle")
end)))
return menu