lain
awesome-wm-widgets
Our great sponsors
lain | awesome-wm-widgets | |
---|---|---|
24 | 47 | |
1,045 | 2,035 | |
- | - | |
0.0 | 7.0 | |
3 months ago | 29 days ago | |
Lua | Lua | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lain
- Were can I study aligning widgets on wibar (or writing awesome widgets in general)?
-
Is this an efficient way to do system monitoring?
Welcome to AW! A few points that may come in handy. * Read awesome-git API documentation first. There are a lot of points about it. * Do not use io.popen https://awesomewm.org/apidoc/libraries/awful.spawn.html * Encapsulate business logic to user custom library and re-use code for your widgets. Remove it from rc.lua. * You can use producer-consumer pattern to create signals and add graphical widget listeners to it. https://github.com/raven2cz/awesomewm-config/blob/master/fishlive/status/archupdates.lua https://github.com/raven2cz/awesomewm-config/blob/master/themes/multicolor/theme.lua * nvidia: nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits * Other basics mem, net, etc. looks here, sometimes is better to use library: https://github.com/lcpz/lain/tree/master/widget * optional: try to divide GUI graphical components (theme parts, and your custom libs) and business logic layer (rc.lua). After a few months, you won't know why and where you implemented it, and you need to keep it in order. Especially the initialization order of the components. Lua requires a strictly sequential order.
- Help with battery widget
- How to get the middle main window layout?
- Desktop Utilities when coming from a DE
-
Password function with lain imap widget
I'm quite confused how to implement the password function for lain imap widget (https://github.com/lcpz/lain/wiki/imap) - using pass (author recommends spm or pass) gpg (and not plain text).
- Which layout can give me these kind of result?
-
How to get battery notification and change wibox theme background in awesome wm
Probably you're using some widgets made by someone else. I see you have a require "lain" in your rc so it's safe to assume you're using lain's widgets, found here: https://github.com/lcpz/lain I'm not familiar with them and currently I am not at the PC but in this file in the repo: https://github.com/lcpz/lain/blob/master/widget/bat.lua You can find this piece of code: bat_notification_critical_preset = { title = "Battery exhausted", text = "Shutdown imminent", timeout = 15, fg = "#000000", bg = "#FFFFFF" } Check out how it works and maybe add your own presets. Good luck.
-
Lain Bat widget updating issue.
You can read more in their wiki : https://github.com/lcpz/lain/wiki/bat
-
where to lean scripting lua for awesome wm?
Lain: https://github.com/lcpz/lain
awesome-wm-widgets
-
Widgets: which are the alternatives?
I'm trying to get the most out of my OS (Arch with X11 and Awesomewm), but I'm stuck with the widgets. I would like to create/use some utilities like an interactive calendar, small TODO list, dropdown menu, etc. but using the awesomewm widgets is too difficult and limiting. I found eww but it seems as difficult as the former widgets.
-
How do I get the batteryarc-widget to work properly?
Hello, I am new to Linux (using Mint rn) and very new to Awesome. I installed Pavel Makhov's awesome-wm-widgets pack since that seems very cool and widely used. While the arc portion of the widget works perfectly fine, the actual charge isn't showing in the middle of the arc. Here's what I mean.
-
Widget help.
I am a noob to awesome wm, and have tried several times to get the widgets from https://github.com/streetturtle/awesome-wm-widgets to work. I am not understanding the directions, and whenever I try it always throws me errors that i cannot figure out. Can anyone give me detailed instructions on how to setup these up?
-
Were can I study aligning widgets on wibar (or writing awesome widgets in general)?
Check tips & tricks section here, there are two tutorials on widget creation: https://pavelmakhov.com/awesome-wm-widgets/ You can also have a look at the source code of https://github.com/streetturtle/awesome-wm-widgets
-
Get Off My Desktop Windows Needs to Stop Showing Tabloid News
> What widgets are you referring to that you found to have leaks?
I'll cite myself here: https://github.com/streetturtle/awesome-wm-widgets/issues/11...
I've had similar issues wherever GTK interacts with awful.spawn . Hence my GTK + awful.spawn.easy_async = extremely leak-prone
Here's another affected library [1]: https://github.com/deficient/volume-control
[1]: No bug under the main repo because they're considering it as a framework bug. See here for discussion: https://github.com/awesomeWM/awesome/issues/3584#issuecommen...
-
How do i add a power button to the wibar
You can try this widget: https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-
Awesome WM customizer/configurator
u/BaigGam3rss I still have some work to do to make my own widgets but you probably start with the documentation [1][2]. And then look at some other projects that use Awesome API to build widgets (ex: [3][4][5][6][7]).
-
button click interpreted twice
------------------------------------------------- -- Logout Menu Widget for Awesome Window Manager -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget -- @author Pavel Makhov -- @copyright 2020 Pavel Makhov ------------------------------------------------- local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local beautiful = require("beautiful") local naughty = require("naughty") local HOME = os.getenv('HOME') local ICON_DIR = HOME .. '/.config/awesome/awesome-wm-widgets/logout-menu-widget/icons/' local logout_menu_widget = wibox.widget { { { image = ICON_DIR .. 'power_w.svg', resize = true, id = "iimage", widget = wibox.widget.imagebox, }, margins = 4, layout = wibox.container.margin }, shape = function(cr, width, height) gears.shape.rounded_rect(cr, width, height, 4) end, widget = wibox.container.background, } local popup = awful.popup { ontop = true, visible = false, shape = function(cr, width, height) gears.shape.rounded_rect(cr, width, height, 4) end, border_width = 1, border_color = beautiful.bg_focus, maximum_width = 400, offset = { y = 5 }, widget = {} } local function worker(user_args) local rows = { layout = wibox.layout.fixed.vertical } local args = user_args or {} local font = args.font or beautiful.font local onlogout = args.onlogout or function () awesome.quit() 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 local menu_items = { { name = 'Log out', icon_name = 'log-out.svg', command = onlogout }, { name = 'Lock', icon_name = 'lock.svg', command = onlock }, { name = 'Reboot', icon_name = 'refresh-cw.svg', command = onreboot }, { name = 'Suspend', icon_name = 'moon.svg', command = onsuspend }, { name = 'Power off', icon_name = 'power.svg', command = onpoweroff }, } for _, item in ipairs(menu_items) do local row = wibox.widget { { { { image = ICON_DIR .. item.icon_name, resize = false, widget = wibox.widget.imagebox }, { text = item.name, font = font, widget = wibox.widget.textbox }, spacing = 12, layout = wibox.layout.fixed.horizontal }, margins = 8, layout = wibox.container.margin }, bg = beautiful.bg_normal, widget = wibox.container.background } row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) end) row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) end) local old_cursor, old_wibox row:connect_signal("mouse::enter", function() local wb = mouse.current_wibox old_cursor, old_wibox = wb.cursor, wb wb.cursor = "hand1" end) row:connect_signal("mouse::leave", function() if old_wibox then old_wibox.cursor = old_cursor old_wibox = nil end end) --row:buttons(awful.util.table.join(awful.button({}, 1, function() -- popup.visible = not popup.visible -- item.command() --end))) row:add_button(awful.button({}, 1, function() popup.visible = not popup.visible item.command() end)) table.insert(rows, row) end popup:setup(rows) -- logout_menu_widget:buttons( -- awful.util.table.join( -- awful.button({}, 1, function() -- if popup.visible then -- popup.visible = not popup.visible -- logout_menu_widget:set_bg('#00000000') -- else -- popup:move_next_to(mouse.current_widget_geometry) -- logout_menu_widget:set_bg(beautiful.bg_focus) -- end -- end) -- ) -- ) logout_menu_widget:add_button( awful.button({}, 1, function() naughty.notify({text = "button pressed"}) if popup.visible then naughty.notify({text = "visible"}) popup.visible = not popup.visible logout_menu_widget:set_bg('#00000000') else naughty.notify({text = "invisible"}) popup:move_next_to(mouse.current_widget_geometry) logout_menu_widget:set_bg(beautiful.bg_focus) end end, function() naughty.notify({text = "button released"}) end) ) return logout_menu_widget end return setmetatable(logout_menu_widget, { __call = function(_, ...) return worker(...) end })
- General help with widgets
- Need help installing awesome-wm-widgets widgets, I tried with the volume widget and then spotify and both times adding the code in the read me to different places in the rc.lua and each time saving and reloading awesomewm caused it to reset to default settings with a slew of errors and no widget
What are some alternatives?
vicious - Vicious is a modular widget library for the "awesome" window manager.
polybar-themes - A huge collection of polybar themes with different styles, colors and variants.
awesome - awesome window manager
rofi - A huge collection of Rofi based custom Applets, Launchers & Powermenus.
net_widgets - Network widgets for Awesome WM
awesome-copycats - Awesome WM themes
rofi-power-menu - Configurable power menu mode for Rofi and dmenu
NsCDE - Modern and functional CDE desktop based on FVWM
bling - Utilities for the awesome window manager
ssui-conky - Collection of conky modules