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

27 lines
561 B
Lua
Raw Normal View History

2024-02-19 19:41:33 -08:00
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
2024-02-19 19:41:33 -08:00
local menu = wibox.widget({
{
font = helpers.set_font("16"),
markup = config.icons.menu,
2024-02-19 19:41:33 -08:00
widget = wibox.widget.textbox(),
},
bottom = dpi(2),
widget = wibox.container.margin,
2024-02-19 19:41:33 -08:00
})
helpers.add_hover_cursor(menu, "hand2")
menu:add_button(awful.button({}, 1, function()
2024-02-19 19:41:33 -08:00
awesome.emit_signal("sidebar::toggle")
end))
return menu