diff options
| author | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
| commit | f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (patch) | |
| tree | 7a04027efe5fede7f08688a9524c5dbe6628635b /.config/awesome/ui/statusbar/panel/widgets/power_menu.lua | |
| parent | ea1bdf6585caed2c0ba8669ca5c3b3b92232281a (diff) | |
restructure services, add get_essid to quarrel.native and other wip work
Diffstat (limited to '.config/awesome/ui/statusbar/panel/widgets/power_menu.lua')
| -rw-r--r-- | .config/awesome/ui/statusbar/panel/widgets/power_menu.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.config/awesome/ui/statusbar/panel/widgets/power_menu.lua b/.config/awesome/ui/statusbar/panel/widgets/power_menu.lua new file mode 100644 index 0000000..ffb5a76 --- /dev/null +++ b/.config/awesome/ui/statusbar/panel/widgets/power_menu.lua @@ -0,0 +1,62 @@ +local q = require "quarrel" +local qbind = require "quarrel.bind" +local qvars = require "quarrel.vars" +local qui = require "quarrel.ui" +local wibox = require "wibox" + +local power_menu = wibox.widget { + qui.styled { + widget = wibox.container.background, + bg = qvars.colors.black, + { + widget = wibox.widget.textbox, + text = "1", + buttons = { + qbind:new { + triggers = qvars.btns.left, + press = function() + q.debug("from 1") + end, + hidden = true + } + } + } + }, + qui.styled { + widget = wibox.container.background, + bg = qvars.colors.black, + { + widget = wibox.widget.textbox, + text = "2", + buttons = { + qbind:new { + triggers = qvars.btns.left, + press = function() + q.debug("from 2") + end, + hidden = true + } + } + } + }, + qui.styled { + widget = wibox.container.background, + bg = qvars.colors.black, + { + widget = wibox.widget.textbox, + text = "3", + buttons = { + qbind:new { + triggers = qvars.btns.left, + press = function() + q.debug("from 3") + end, + hidden = true + } + } + } + }, + layout = wibox.layout.flex.horizontal +} + +return power_menu |
