diff --git a/logout-widget/README.md b/logout-popup-widget/README.md similarity index 95% rename from logout-widget/README.md rename to 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 similarity index 100% rename from logout-widget/logout-dark.png rename to logout-popup-widget/logout-dark.png diff --git a/logout-widget/logout-dracula.png b/logout-popup-widget/logout-dracula.png similarity index 100% rename from logout-widget/logout-dracula.png rename to logout-popup-widget/logout-dracula.png diff --git a/logout-widget/logout-nord.png b/logout-popup-widget/logout-nord.png similarity index 100% rename from logout-widget/logout-nord.png rename to logout-popup-widget/logout-nord.png diff --git a/logout-widget/logout-outrun.png b/logout-popup-widget/logout-outrun.png similarity index 100% rename from logout-widget/logout-outrun.png rename to logout-popup-widget/logout-outrun.png diff --git a/logout-widget/logout.lua b/logout-popup-widget/logout-popup.lua similarity index 99% rename from logout-widget/logout.lua rename to 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 @@ + \ No newline at end of file diff --git a/logout-widget/screenshot.gif b/logout-popup-widget/screenshot.gif similarity index 100% rename from logout-widget/screenshot.gif rename to logout-popup-widget/screenshot.gif diff --git a/logout-widget/screenshot.png b/logout-popup-widget/screenshot.png similarity index 100% rename from logout-widget/screenshot.png rename to logout-popup-widget/screenshot.png