summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordascruel <das@laptop.localdomain>2020-12-28 15:19:25 +0000
committerdascruel <das@laptop.localdomain>2020-12-28 15:40:39 +0000
commitfb0542c0981d279f92de8ea915753c2f30a5eba7 (patch)
tree45d20c4609bffc0feeac0804b1c3b4e6d6a3fbfb
parent31ac43703d6296d31e0ee3b4b9db7d4d5a235576 (diff)
README for the hotkey instructions for the logout-popup-widget were
referencing a non-existent location.
-rw-r--r--logout-popup-widget/README.md4
-rw-r--r--logout-popup-widget/logout-popup.lua3
2 files changed, 4 insertions, 3 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..fd30c8e 100644
--- a/logout-popup-widget/logout-popup.lua
+++ b/logout-popup-widget/logout-popup.lua
@@ -59,7 +59,8 @@ local function create_button(icon_name, action_name, color, onclick, icon_size,
return button
end
-local function launch(args)
+local function launch(user_args)
+ local args = user_args or {}
local bg_color = args.bg_color or beautiful.bg_normal
local accent_color = args.accent_color or beautiful.bg_focus