summaryrefslogtreecommitdiff
path: root/logout-popup-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-12-28 13:03:27 -0500
committerGitHub <noreply@github.com>2020-12-28 13:03:27 -0500
commiteb742ed9d4c96d3f38a1d654070a0a8aca8850b7 (patch)
treeaa87d3d2977c7a23f910a82a88a347504e3ff5bf /logout-popup-widget
parent31ac43703d6296d31e0ee3b4b9db7d4d5a235576 (diff)
parent9e1167e3257b68b65f1d03d0469c0d2c0857377d (diff)
Merge pull request #229 from dascruel/master
Fixed minor issues in logout-popup widget
Diffstat (limited to 'logout-popup-widget')
-rw-r--r--logout-popup-widget/README.md4
-rw-r--r--logout-popup-widget/logout-popup.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/logout-popup-widget/README.md b/logout-popup-widget/README.md
index cdbbb6e..9b83eed 100644
--- a/logout-popup-widget/README.md
+++ b/logout-popup-widget/README.md
@@ -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:
diff --git a/logout-popup-widget/logout-popup.lua b/logout-popup-widget/logout-popup.lua
index ce6699a..4e52b50 100644
--- a/logout-popup-widget/logout-popup.lua
+++ b/logout-popup-widget/logout-popup.lua
@@ -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