Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,161,445 members, 7,846,846 topics. Date: Saturday, 01 June 2024 at 03:49 AM

Log: Awesomewm Linux Customization With Lua - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Log: Awesomewm Linux Customization With Lua (671 Views)

Can Anyone Help Me With Lua? / What Can I Specially Use Lua For? / V3 Nodemcu 4m Bytes Lua Wifi Development Board Based Esp8266 Esp-12e (2) (3) (4)

(1) (Reply) (Go Down)

Log: Awesomewm Linux Customization With Lua by qtguru(m): 6:22pm On Apr 24, 2021
Good Day I will keep this concise and clear.

The goal is to customize AwesomeWM a X11 Window Manager for Linux, it is a tiling window manager that manages your window, it is somewhat akin to i3 for linux, except that this is more comfortable to use

Why am I using AwesomeWM

Traditionally I run the Windows platform, however Windows consumes 1.5gb to 3gb to run, along with other services, I do alot of work, so memory management is important, AwesomeWM is very light on memory usage and the interface are basic information


The goal is to customize the Theme and also post what is required to modify the interface, X11 is responsible for rendering the UI we see, pending it is replaced by Wayland, with AwesomeWM and Lua we can render some widgets via AwesomeWM libraries for custom interface

From the screenshot you can see it consumes only 694mb, it could be less, but I have some services running like docker, and some KDE tools.

Goals for Project

* Customize Theme
* Create Widget
* Explain how rendering on AwesomeWM works and how to draw your own desktop item

Github Lua
https://github.com/dojoVader/LuaScriptPlayGround/tree/main/learning

I will update more as I go

3 Likes

Re: Log: Awesomewm Linux Customization With Lua by qtguru(m): 6:35pm On Apr 24, 2021
The reason for picking AwesomeWM is because I have Multiple Screens and it is an hassle to use the mouse and also toggle between windows.

Imagine having a large screen monitor and having the ability to have multiple windows like this

It is very productive and with just the keyboard, I can move to other screen, switch to a workspace, adjust the width between the gaps and also keep track of certain tasks. e.g Deployment, Builds and etc while using less memory from the system.

1 Like

Re: Log: Awesomewm Linux Customization With Lua by qtguru(m): 6:47pm On Apr 24, 2021
AwesomeWM depends on the Widget System so my next goal is to study the Widget system since I have the basic lua knowledge now, I can move ahead to consult AwesomeWM documentation and read about the system.

Points to Consider

* How Lua offloads renderings operations X 11 ( Linux Display Server / GUI , (For JavaScript/Java Devs: Think about it like Canvas you can draw anything on it) )
* Widgets Libraries
* Realtime-update
* Networking and HTTP Request ( API Based Widgets e.g A Widget to show NL post on Linux UI )

1 Like

Re: Log: Awesomewm Linux Customization With Lua by xamuel17(m): 10:42am On May 15, 2021
Hello qtguru , sorry I have to drop this message here. I have been following yours posts on nairaland lately and its been really inspiring ... I have interest in becoming a moodle developer but I don't really know how to go about it. Can we communicate via email ?

Would be glad if you drop your email address
Re: Log: Awesomewm Linux Customization With Lua by qtguru(m): 12:34pm On May 16, 2021
This Weekend, I wanted to work on my AwesomWM Desktop, because my desktop feels a bit stale, I wanted a new look, building a AwesomeWM from scratch is daunting, so I took Deicide advice and copied a dotFile for Ayu, I stripped out alot of items, however I had issues using it, as there were some error I couldn't make sense.

A bit of research and I found out that error relation Xsession are stored in

~/.xsession-errors

So I had it opened on Sublime so I can see the error anytime I edit the config file, this is what editing the config file looks like , you can see I created a list of themes so I can cycle through them, Also I didn't write the whole code there, I simply added some small tweaks and code, like my list of themes and some minor stuff.

I was able to understand how Awesome works and the gears/awful/beautiful libraries , gears handles Wallpaper/FIleSystem while Awful is to create Window boxes and beautiful is the method that initializes the widgets and all. So understanding that is very important.

So I have been able to fork a base theme I will use but this is what my desktop looks like now, and the font has been changed also

What's Left

Titlebar decoration: Looks oldschool and outdated
Change of Icons
Rounded Corner
Task Switcher:
Awful allows you to bind to a key, so with that, I can query all the applications and create a layout and render them on the UI, and when you select, render the selection effect and bring the client to focus when chose or use what has been created
New Widgets: I need some productive Widgets, I will look at Unixporn One can create Widget to Fetch topics from NL

More updates later on

1 Like

Re: Log: Awesomewm Linux Customization With Lua by Deicide: 6:58pm On May 16, 2021
qtguru:
More updates later on
This looks good actually, I would have loved to switch to Awesome but am enjoying my BSPWM grin
Re: Log: Awesomewm Linux Customization With Lua by Mytime03: 8:53am On May 17, 2023
qtguru:
This Weekend, I wanted to work on my AwesomWM Desktop, because my desktop feels a bit stale, I wanted a new look, building a AwesomeWM from scratch is daunting, so I took Deicide advice and copied a dotFile for Ayu, I stripped out alot of items, however I had issues using it, as there were some error I couldn't make sense.

A bit of research and I found out that error relation Xsession are stored in

~/.xsession-errors

So I had it opened on Sublime so I can see the error anytime I edit the config file, this is what editing the config file looks like , you can see I created a list of themes so I can cycle through them, Also I didn't write the whole code there, I simply added some small tweaks and code, like my list of themes and some minor stuff.

I was able to understand how Awesome works and the gears/awful/beautiful libraries , gears handles Wallpaper/FIleSystem while Awful is to create Window boxes and beautiful is the method that initializes the widgets and all. So understanding that is very important.

So I have been able to fork a base theme I will use but this is what my desktop looks like now, and the font has been changed also

What's Left

Titlebar decoration: Looks oldschool and outdated
Change of Icons
Rounded Corner
Task Switcher:
Awful allows you to bind to a key, so with that, I can query all the applications and create a layout and render them on the UI, and when you select, render the selection effect and bring the client to focus when chose or use what has been created
New Widgets: I need some productive Widgets, I will look at Unixporn One can create Widget to Fetch topics from NL

More updates later on







Good morning qtguru, I hope you see this.
First of all I love what you do on here and you inspire me alot. I came on here last year to rant about my predicament but I later realized the change I'm seeking for begins with me, no one is coming to save me and if I don't move, nothing will change. I started taking Software Engineering course few weeks ago, my resources are YouTube videos, Odin project and I'm also taking the Havard CS50 course alongside. Electricity has been my major issue but there is this bet shop in my street, I spent atleast 4 hours there since I started this course cos they always on Generator. Please sir, I want you to mentor me. It will aid my growth and accelerate my learning. Please sir , I will be expecting your response.

(1) (Reply)

Which Version Should I Use? / What You Need To Know About Python / Php Gurus Help Urgently

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.