summaryrefslogtreecommitdiff
path: root/experiments/logout-widget
diff options
context:
space:
mode:
Diffstat (limited to 'experiments/logout-widget')
-rw-r--r--experiments/logout-widget/README.md5
-rw-r--r--experiments/logout-widget/logout.lua3
-rw-r--r--experiments/logout-widget/screenshot.pngbin0 -> 129588 bytes
3 files changed, 5 insertions, 3 deletions
diff --git a/experiments/logout-widget/README.md b/experiments/logout-widget/README.md
index d9a3ea9..3d3565d 100644
--- a/experiments/logout-widget/README.md
+++ b/experiments/logout-widget/README.md
@@ -1,10 +1,13 @@
# Logout widget
+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)
+
# Installation
Clone repo (if not cloned yet) under ~/.config/awesome, then
-
- to show by shortcut:
```lua
diff --git a/experiments/logout-widget/logout.lua b/experiments/logout-widget/logout.lua
index 3b15274..c68506b 100644
--- a/experiments/logout-widget/logout.lua
+++ b/experiments/logout-widget/logout.lua
@@ -17,7 +17,6 @@ local fancybuttons = require("awesome-buttons.awesome-buttons")
local HOME_DIR = os.getenv("HOME")
local WIDGET_DIR = HOME_DIR .. '/.config/awesome/awesome-wm-widgets/experiments/logout-widget'
-local ICONS_DIR = WIDGET_DIR .. '/icons/'
local w = wibox {
@@ -39,7 +38,7 @@ local action = wibox.widget {
local function create_button(icon_name, action_name, color, onclick)
- local button = fancybuttons.with_icon{ type = 'basic', shape = 'rectangle', icon = icon_name, color = color, onclick = onclick }
+ local button = fancybuttons.with_icon{ type = 'basic', icon = icon_name, color = color, onclick = onclick }
button:connect_signal("mouse::enter", function(c) action:set_text(action_name) end)
button:connect_signal("mouse::leave", function(c) action:set_text(' ') end)
return button
diff --git a/experiments/logout-widget/screenshot.png b/experiments/logout-widget/screenshot.png
new file mode 100644
index 0000000..74ed7f0
--- /dev/null
+++ b/experiments/logout-widget/screenshot.png
Binary files differ