rename logout widget to logout-popup
|
@ -1,4 +1,4 @@
|
||||||
# Logout widget
|
# Logout Popup Widget
|
||||||
|
|
||||||
Widget which allows to perform lock, reboot, log out, power off and sleep actions. It can be called either by a shortcut, or by clicking on a widget in wibar.
|
Widget which allows to perform lock, reboot, log out, power off and sleep actions. It can be called either by a shortcut, or by clicking on a widget in wibar.
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@ Then
|
||||||
- to show by clicking on a widget in wibar - add widget to the wibar:
|
- to show by clicking on a widget in wibar - add widget to the wibar:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local logout = require("awesome-wm-widgets.logout-widget.logout")
|
local logout_popup = require("awesome-wm-widgets.logout-popup-widget.logout-popup")
|
||||||
|
|
||||||
s.mytasklist, -- Middle widget
|
s.mytasklist, -- Middle widget
|
||||||
{ -- Right widgets
|
{ -- Right widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
...
|
...
|
||||||
logout.widget{},
|
logout_popup.widget{},
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
@ -16,7 +16,7 @@ local awesomebuttons = require("awesome-buttons.awesome-buttons")
|
||||||
|
|
||||||
|
|
||||||
local HOME_DIR = os.getenv("HOME")
|
local HOME_DIR = os.getenv("HOME")
|
||||||
local WIDGET_DIR = HOME_DIR .. '/.config/awesome/awesome-wm-widgets/logout-widget'
|
local WIDGET_DIR = HOME_DIR .. '/.config/awesome/awesome-wm-widgets/logout-popup-widget'
|
||||||
|
|
||||||
|
|
||||||
local w = wibox {
|
local w = wibox {
|
||||||
|
@ -69,7 +69,7 @@ local function launch(args)
|
||||||
local icon_margin = args.icon_margin or 16
|
local icon_margin = args.icon_margin or 16
|
||||||
|
|
||||||
local onlogout = args.onlogout or function () awesome.quit() end
|
local onlogout = args.onlogout or function () awesome.quit() end
|
||||||
local onlock = args.onlock or function() awful.spawn.with_shell("systemctl suspend") end
|
local onlock = args.onlock or function() awful.spawn.with_shell("i3lock") end
|
||||||
local onreboot = args.onreboot or function() awful.spawn.with_shell("reboot") end
|
local onreboot = args.onreboot or function() awful.spawn.with_shell("reboot") end
|
||||||
local onsuspend = args.onsuspend or function() awful.spawn.with_shell("systemctl suspend") end
|
local onsuspend = args.onsuspend or function() awful.spawn.with_shell("systemctl suspend") end
|
||||||
local onpoweroff = args.onpoweroff or function() awful.spawn.with_shell("shutdown now") end
|
local onpoweroff = args.onpoweroff or function() awful.spawn.with_shell("shutdown now") end
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-power"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg>
|
After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 436 KiB After Width: | Height: | Size: 436 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |