2024-02-18 20:26:15 -08:00
|
|
|
local awful = require "awful"
|
|
|
|
local wibox = require "wibox"
|
|
|
|
local gears = require "gears"
|
|
|
|
local beautiful = require "beautiful"
|
|
|
|
local helpers = require "helpers"
|
|
|
|
local dpi = beautiful.xresources.apply_dpi
|
2024-02-18 14:31:14 -08:00
|
|
|
|
2024-02-18 20:26:15 -08:00
|
|
|
-- Menu
|
|
|
|
--local menu = wibox.widget.textbox()
|
|
|
|
--menu.font = "FiraCode Nerd Font 16"
|
|
|
|
--menu.markup = "ﰪ"
|
|
|
|
local menu = wibox.widget {
|
2024-02-18 14:31:14 -08:00
|
|
|
{
|
2024-02-18 20:26:15 -08:00
|
|
|
font = beautiful.font_name.."16",
|
|
|
|
markup = "ﰪ",
|
|
|
|
widget = wibox.widget.textbox(),
|
2024-02-18 14:31:14 -08:00
|
|
|
},
|
|
|
|
bottom = 2,
|
|
|
|
widget = wibox.container.margin,
|
2024-02-18 20:26:15 -08:00
|
|
|
}
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
helpers.ui.add_hover_cursor(menu, "hand2")
|
|
|
|
|
2024-02-18 20:26:15 -08:00
|
|
|
|
|
|
|
menu:buttons(gears.table.join(
|
|
|
|
awful.button({ }, 1, function()
|
|
|
|
awesome.emit_signal("sidebar::toggle")
|
|
|
|
end)
|
|
|
|
))
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
return menu
|