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

19 lines
474 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 config = require("config")
local helpers = require("helpers")
local theme = beautiful.get()
-- Menu
local menu = wibox.widget.textbox()
menu.font = helpers.ui.set_font("16")
menu.markup = helpers.ui.colorize_text(config.icons.power, theme.xcolor10)
menu:add_button(awful.button({}, 1, function()
2024-02-19 19:41:33 -08:00
awesome.emit_signal("module::exit_screen:show")
end))
return menu