Merge pull request #229 from dascruel/master

Fixed minor issues in logout-popup widget
This commit is contained in:
streetturtle 2020-12-28 13:03:27 -05:00 committed by GitHub
commit eb742ed9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -28,11 +28,11 @@ Then
- to show by a shortcut - define a shortcut in `globalkeys`:
```lua
local logout = require("awesome-wm-widgets.experiments.logout-widget.logout")
local logout_popup = require("awesome-wm-widgets.logout-popup-widget.logout-popup")
...
globalkeys = gears.table.join(
...
awful.key({ modkey }, "l", function() logout.launch() end, {description = "Show logout screen", group = "custom"}),
awful.key({ modkey }, "l", function() logout_popup.launch() end, {description = "Show logout screen", group = "custom"}),
```
- to show by clicking on a widget in wibar - add widget to the wibar:

View File

@ -60,6 +60,7 @@ local function create_button(icon_name, action_name, color, onclick, icon_size,
end
local function launch(args)
args = args or {}
local bg_color = args.bg_color or beautiful.bg_normal
local accent_color = args.accent_color or beautiful.bg_focus