dotfiles/dot_config/awesome/ui/top-panel/widgets/menu.lua
2024-04-14 18:41:15 -07:00

26 lines
561 B
Lua

local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local helpers = require("helpers.ui")
local config = require("config")
local dpi = beautiful.xresources.apply_dpi
-- Menu
local menu = wibox.widget({
{
font = helpers.set_font("16"),
markup = config.icons.menu,
widget = wibox.widget.textbox(),
},
bottom = dpi(2),
widget = wibox.container.margin,
})
helpers.add_hover_cursor(menu, "hand2")
menu:add_button(awful.button({}, 1, function()
awesome.emit_signal("sidebar::toggle")
end))
return menu