Simple popup power menu for awesomewm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Izaya 0103c4a93c rotate all relevant screens when requested, and parse the output of xrandr and xinput better 5 months ago
LICENSE Initial commit 11 months ago
README.md switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
brightness-down.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
brightness-up.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
init.lua rotate all relevant screens when requested, and parse the output of xrandr and xinput better 5 months ago
object-rotate-left.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
object-rotate-right.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
rotate.lua rotate all relevant screens when requested, and parse the output of xrandr and xinput better 5 months ago
system-lock-screen.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
system-log-out.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
system-reboot.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
system-suspend.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago
view-fullscreen.svg switch to SVG icons, add longpress-activated shutdown and reboot buttons, make menu per-screen, add fullscreen for use with awesome-navbar 5 months ago

README.md

awesome-powermenu

Simple popup power menu for awesomewm

Usage

require the library:

local powermenu = require "awesome-powermenu"

Initialise the menu, for a given screen:

awful.screen.connect_for_each_screen(function(s)
 ...
 s.powermenu = powermenu.new(s)
end

Bind it to something:

global_key({modkey}, "p", function() awful.screen.focused().powermenu:toggle() end,
           "show power menu", "launcher")

Configuration

powermenu.buttonsize = 128,
powermenu.spacing = 5,
powermenu.iconPath = gears.filesystem.get_configuration_dir() .. "/powermenu/",
powermenu.lock = function()
 -- your lock function here
end,
powermenu.suspend = function()
 -- your suspend function here
end
powermenu.poweroff = function()
 -- your power off function here
end