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.
|
1 year ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 1 year ago | |
brightness-down.svg | 1 year ago | |
brightness-up.svg | 1 year ago | |
init.lua | 1 year ago | |
object-rotate-left.svg | 1 year ago | |
object-rotate-right.svg | 1 year ago | |
rotate.lua | 1 year ago | |
system-lock-screen.svg | 1 year ago | |
system-log-out.svg | 1 year ago | |
system-reboot.svg | 1 year ago | |
system-suspend.svg | 1 year ago | |
view-fullscreen.svg | 1 year 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