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 73299f770c fix icon path 6 months ago
LICENSE Initial commit 6 months ago
README.md add usage info 6 months ago
init.lua fix icon path 6 months ago
lock.png import power menu 6 months ago
poweroff.png import power menu 6 months ago
restart.png import power menu 6 months ago
suspend.png import power menu 6 months ago

README.md

awesome-powermenu

Simple popup power menu for awesomewm

Usage

require the library:

local powermenu = require "awesome-powermenu"

Initialise the menu:

powermenu.new()

Bind it to something:

global_key({modkey}, "p", function() powermenuPopup: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