diff options
author | streetturtle <streetturtle@gmail.com> | 2020-12-18 21:10:29 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-12-18 21:10:53 -0500 |
commit | 9a3a38cabab9c1bbed34641690899ec69e6b43c1 (patch) | |
tree | 5aca1030a948a523ee391244f1cdeb1425c6bd46 | |
parent | 1626886e51c2f2c0bf2730abb4d69c07df448d3e (diff) |
rename logout widget to logout-popup
-rw-r--r-- | logout-popup-widget/README.md (renamed from logout-widget/README.md) | 6 | ||||
-rw-r--r-- | logout-popup-widget/logout-dark.png (renamed from logout-widget/logout-dark.png) | bin | 27757 -> 27757 bytes | |||
-rw-r--r-- | logout-popup-widget/logout-dracula.png (renamed from logout-widget/logout-dracula.png) | bin | 44660 -> 44660 bytes | |||
-rw-r--r-- | logout-popup-widget/logout-nord.png (renamed from logout-widget/logout-nord.png) | bin | 26289 -> 26289 bytes | |||
-rw-r--r-- | logout-popup-widget/logout-outrun.png (renamed from logout-widget/logout-outrun.png) | bin | 49973 -> 49973 bytes | |||
-rw-r--r-- | logout-popup-widget/logout-popup.lua (renamed from logout-widget/logout.lua) | 4 | ||||
-rw-r--r-- | logout-popup-widget/power.svg | 1 | ||||
-rw-r--r-- | logout-popup-widget/screenshot.gif (renamed from logout-widget/screenshot.gif) | bin | 446468 -> 446468 bytes | |||
-rw-r--r-- | logout-popup-widget/screenshot.png (renamed from logout-widget/screenshot.png) | bin | 129588 -> 129588 bytes |
9 files changed, 6 insertions, 5 deletions
diff --git a/logout-widget/README.md b/logout-popup-widget/README.md index e4d095d..cdbbb6e 100644 --- a/logout-widget/README.md +++ b/logout-popup-widget/README.md @@ -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. @@ -38,13 +38,13 @@ Then - to show by clicking on a widget in wibar - add widget to the wibar: ```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 { -- Right widgets layout = wibox.layout.fixed.horizontal, ... - logout.widget{}, + logout_popup.widget{}, ... ``` diff --git a/logout-widget/logout-dark.png b/logout-popup-widget/logout-dark.png Binary files differindex 06e7c9c..06e7c9c 100644 --- a/logout-widget/logout-dark.png +++ b/logout-popup-widget/logout-dark.png diff --git a/logout-widget/logout-dracula.png b/logout-popup-widget/logout-dracula.png Binary files differindex 3c61c46..3c61c46 100644 --- a/logout-widget/logout-dracula.png +++ b/logout-popup-widget/logout-dracula.png diff --git a/logout-widget/logout-nord.png b/logout-popup-widget/logout-nord.png Binary files differindex 9ab4b55..9ab4b55 100644 --- a/logout-widget/logout-nord.png +++ b/logout-popup-widget/logout-nord.png diff --git a/logout-widget/logout-outrun.png b/logout-popup-widget/logout-outrun.png Binary files differindex 9be68b5..9be68b5 100644 --- a/logout-widget/logout-outrun.png +++ b/logout-popup-widget/logout-outrun.png diff --git a/logout-widget/logout.lua b/logout-popup-widget/logout-popup.lua index 512ac23..ce6699a 100644 --- a/logout-widget/logout.lua +++ b/logout-popup-widget/logout-popup.lua @@ -16,7 +16,7 @@ local awesomebuttons = require("awesome-buttons.awesome-buttons") 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 { @@ -69,7 +69,7 @@ local function launch(args) local icon_margin = args.icon_margin or 16 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 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 diff --git a/logout-popup-widget/power.svg b/logout-popup-widget/power.svg new file mode 100644 index 0000000..1f9c4e3 --- /dev/null +++ b/logout-popup-widget/power.svg @@ -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>
\ No newline at end of file diff --git a/logout-widget/screenshot.gif b/logout-popup-widget/screenshot.gif Binary files differindex 4975c19..4975c19 100644 --- a/logout-widget/screenshot.gif +++ b/logout-popup-widget/screenshot.gif diff --git a/logout-widget/screenshot.png b/logout-popup-widget/screenshot.png Binary files differindex 74ed7f0..74ed7f0 100644 --- a/logout-widget/screenshot.png +++ b/logout-popup-widget/screenshot.png |