2024-02-19 19:41:33 -08:00
|
|
|
local awful = require("awful")
|
|
|
|
local wibox = require("wibox")
|
2024-02-24 14:01:36 -08:00
|
|
|
local beautiful = require("beautiful")
|
|
|
|
local config = require("config")
|
|
|
|
local helpers = require("helpers")
|
|
|
|
|
|
|
|
local theme = beautiful.get()
|
2024-02-18 14:31:14 -08:00
|
|
|
|
2024-02-18 20:26:15 -08:00
|
|
|
-- Menu
|
2024-02-18 14:31:14 -08:00
|
|
|
local menu = wibox.widget.textbox()
|
2024-02-24 14:01:36 -08:00
|
|
|
menu.font = helpers.ui.set_font("16")
|
2024-02-25 17:42:33 -08:00
|
|
|
menu.markup = helpers.ui.colorize_text(config.icons.power, theme.color.red)
|
2024-02-18 14:31:14 -08:00
|
|
|
|
2024-02-24 14:01:36 -08:00
|
|
|
menu:add_button(awful.button({}, 1, function()
|
2024-02-19 19:41:33 -08:00
|
|
|
awesome.emit_signal("module::exit_screen:show")
|
2024-02-24 14:01:36 -08:00
|
|
|
end))
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
return menu
|