summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-12-18 21:10:29 -0500
committerstreetturtle <streetturtle@gmail.com>2020-12-18 21:10:53 -0500
commit9a3a38cabab9c1bbed34641690899ec69e6b43c1 (patch)
tree5aca1030a948a523ee391244f1cdeb1425c6bd46
parent1626886e51c2f2c0bf2730abb4d69c07df448d3e (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)bin27757 -> 27757 bytes
-rw-r--r--logout-popup-widget/logout-dracula.png (renamed from logout-widget/logout-dracula.png)bin44660 -> 44660 bytes
-rw-r--r--logout-popup-widget/logout-nord.png (renamed from logout-widget/logout-nord.png)bin26289 -> 26289 bytes
-rw-r--r--logout-popup-widget/logout-outrun.png (renamed from logout-widget/logout-outrun.png)bin49973 -> 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.svg1
-rw-r--r--logout-popup-widget/screenshot.gif (renamed from logout-widget/screenshot.gif)bin446468 -> 446468 bytes
-rw-r--r--logout-popup-widget/screenshot.png (renamed from logout-widget/screenshot.png)bin129588 -> 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
index 06e7c9c..06e7c9c 100644
--- a/logout-widget/logout-dark.png
+++ b/logout-popup-widget/logout-dark.png
Binary files differ
diff --git a/logout-widget/logout-dracula.png b/logout-popup-widget/logout-dracula.png
index 3c61c46..3c61c46 100644
--- a/logout-widget/logout-dracula.png
+++ b/logout-popup-widget/logout-dracula.png
Binary files differ
diff --git a/logout-widget/logout-nord.png b/logout-popup-widget/logout-nord.png
index 9ab4b55..9ab4b55 100644
--- a/logout-widget/logout-nord.png
+++ b/logout-popup-widget/logout-nord.png
Binary files differ
diff --git a/logout-widget/logout-outrun.png b/logout-popup-widget/logout-outrun.png
index 9be68b5..9be68b5 100644
--- a/logout-widget/logout-outrun.png
+++ b/logout-popup-widget/logout-outrun.png
Binary files differ
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
index 4975c19..4975c19 100644
--- a/logout-widget/screenshot.gif
+++ b/logout-popup-widget/screenshot.gif
Binary files differ
diff --git a/logout-widget/screenshot.png b/logout-popup-widget/screenshot.png
index 74ed7f0..74ed7f0 100644
--- a/logout-widget/screenshot.png
+++ b/logout-popup-widget/screenshot.png
Binary files differ