Simple popup power menu for awesomewm
Go to file
2022-08-25 13:37:47 +10:00
brightness-down.png added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
brightness-up.png added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
init.lua added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
LICENSE Initial commit 2022-03-04 09:57:16 +11:00
lock.png import power menu 2022-03-04 09:57:59 +11:00
poweroff.png import power menu 2022-03-04 09:57:59 +11:00
README.md add usage info 2022-03-04 10:03:35 +11:00
restart.png import power menu 2022-03-04 09:57:59 +11:00
rotate-left.png added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
rotate-right.png added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
rotate.lua added brightness and rotation controls, still WIP 2022-08-25 13:37:47 +10:00
suspend.png import power menu 2022-03-04 09:57:59 +11:00

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