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

16 lines
429 B
Lua
Raw Normal View History

2024-02-19 19:41:33 -08:00
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
2024-02-20 19:13:52 -08:00
local beautiful = require("beautiful").get()
-- Menu
local menu = wibox.widget.textbox()
2024-02-19 19:41:33 -08:00
menu.font = beautiful.font_name .. "16"
menu.markup = "<span foreground='" .. beautiful.xcolor10 .. "'></span>"
2024-02-19 19:41:33 -08:00
menu:buttons(gears.table.join(awful.button({}, 1, function()
awesome.emit_signal("module::exit_screen:show")
end)))
return menu