[logout] update
This commit is contained in:
parent
19f8937278
commit
55a1302289
|
@ -2,7 +2,7 @@
|
|||
|
||||
Widget which allows to perform lock, reboot, log out, power off and sleep actions. If can be called either by a shortcut, or by clicking on a widget in wibar.
|
||||
|
||||
![screenshot](./screenshot.png)
|
||||
![screenshot](./screenshot.gif)
|
||||
|
||||
# Installation
|
||||
|
||||
|
@ -12,7 +12,9 @@ Clone repo (if not cloned yet) under ~/.config/awesome, then
|
|||
|
||||
```lua
|
||||
local logout = require("awesome-wm-widgets.experiments.logout-widget.logout")
|
||||
|
||||
...
|
||||
globalkeys = gears.table.join(
|
||||
...
|
||||
-- define a shorcut in globalkey
|
||||
awful.key({ modkey }, "l", function() logout.launch() end, {description = "Show logout screen", group = "custom"}),
|
||||
```
|
||||
|
@ -41,4 +43,15 @@ Clone repo (if not cloned yet) under ~/.config/awesome, then
|
|||
|
||||
## Phrase
|
||||
|
||||
You can provide a phrase which appears on the widget.
|
||||
|
||||
|
||||
bg_color = args.bg_color or beautiful.bg_normal
|
||||
accent_color = args.accent_color or beautiful.bg_focus
|
||||
text_color = args.text_color or beautiful.fg_normal
|
||||
phrases = args.phrases or {'Goodbye!'}
|
||||
|
||||
onlogout = args.onlogout or function () awesome.quit() end
|
||||
onlock = args.onlock
|
||||
onreboot = args.onreboot
|
||||
onsuspend = args.onsuspend or function () awful.spawn.with_shell("systemctl suspend") end
|
||||
onpoweroff = args.onpoweroff or function () awful.spawn.with_shell("shutdown now") end
|
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
Loading…
Reference in New Issue