summaryrefslogtreecommitdiff
path: root/experiments
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-09-02 21:49:20 -0400
committerstreetturtle <streetturtle@gmail.com>2020-09-02 21:49:20 -0400
commit19f893727835e7d80865978b093e6ff6099624c6 (patch)
tree4b847d5be92d14ab5d207c0056415405ee6bd38f /experiments
parent41db3fae9a06f01fa8f1be7d996933b5800805de (diff)
[logout] update readme
Diffstat (limited to 'experiments')
-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