r/QuickShell • • 15d ago

Hello guys , what to ACTUALLY learn in Quickshell

Theres lots of part in programming but not really sure if i have to learn all of them , like Module programming (Module : like adding the a clock to ur bar in case you dont know that).

Now im ive learned a lot about media controler but should i really spend so much time just to put a pause & play button?

Like is the Module programming even necessary and if not what actually necessary to learn in Quickshell?.

1 Upvotes

14 comments sorted by

4

u/cinollin 14d ago

You do not really need to learn all of them to make a shell yourself. I recommend learning as you go, make a small disposable project, create your first Bar, Clock,... it will be terrible, but that first project will help you know what you need for your real projects later on.

2

u/cinollin 14d ago

About the modules, I do not know what you are talking about. There are a lot of modules in quickshell and qml docs... if they're what you're talking about ermm... always take a brief look at them before doing something, there might be available options to replace some manual approaches.

3

u/chikamakaleyley 14d ago

"Types" is what I think most objects are referred to

but yeah i agree, start small, iterate on it

Now im ive learned a lot about media controler but should i really spend so much time just to put a pause & play button?

It really shouldn't be 'how much time' you spend 'just' to create a play & pause button. I think they question OP should be asking is "How much do i want/need this"

I got tired of only being able to control my room lighting by the propietary phone app; it's just kinda slow/clunky. So I created a widget, which is just a window with buttons, connected to the lighting over wifi, and now those buttons just execute CLI commands which change the light settings. Never have to take my hands off the keyboard

1

u/anorcky 14d ago

Pardon me for using the wrong word for that Anyway , in my case thats different . Learning to add a widget and connecting it to the room lights will be completed for me cuz ill have to learn from Ai And honestly its not the most convenient thing The wiki miss so much info and i don't understand a thing , and a reverse engineering (looking at someone's code) tried that and seemed so complicated So making a widget for the room's light will take me 3 days somthing And thats because i don't know where to learn or whats necessary to learn

2

u/chikamakaleyley 14d ago

I'm not saying make what I make - I'm a software engineer and the docs are a bit dense for me as well

I'm saying figure out what you want to make first and build that - and learn along the way.

Let's say the thing you want to make is ABCD. But ABCD is too complex.

Do you know how to make AB? or CD? how about any 1 of A, B, C, or D? You must, because it sounds like you were able to make a clock, and the media player.

Maybe each of those, you had to create a B component

1

u/anorcky 14d ago

It seems like your telling me to learn one thing at a time , which is a great advice honestly Not like i didn't know it but i though that ill be able to make a big project after i practice quickshell for 2 weeks , but it seems like i over hyped myself a lil If what i got was right then thanks for the advice

3

u/chikamakaleyley 14d ago

yeah its def not for beginners, bit of a steeper learning curve

The library that it's based off of - Qt/QtQuick etc - its used to build high quality graphical UI in general and has been around for quite some time

Quickshell is more or less a collection of those tools written as a framework to make it easier for you to build desktop widgets in linux.

Eg. that's why you can just write a FloatingWindow, with some Text, and then output to your screen with just the command qs -c mycustomshell

Had you tried to write this in raw qt/qtquick you probably would have had to write all the stuff under the hood communicating with the compositor

1

u/ftranschel 13d ago

Exactly this is what made me fall in love with qs in the first place - the amount of work it takes off your plate is insane.

1

u/chikamakaleyley 13d ago

Curious what u think about the docs/lsp features, trying to make some tooling or guides that help me find what I need faster

I had a long back n forth ai discussion and it’s making so much more sense

2

u/ftranschel 13d ago

The docs are... mostly correct and not very noob-friendly at the same time. For many inherited properties you have to dig your way into the QtQuick docs and then translate what you find into the most likely JS syntax for whatever C binding you have...

I think it would go a long way to have examples of most standard components like Launcher, PopUp, Notifier, how to wire animations etc. etc.

(Try to find out how to show a thumbnail of your active windows... the docs will tell you to use Hyprland.Toplevel.wayland when really it is Hyprland.Toplevel itself... -.-')

→ More replies

1

u/anorcky 14d ago

I did create a clock and a media displayer with sluder and buttons and all these stuff But when it came to the cuztimise i lost it X : slider.availableHeight/2 - height/2 I mean all these things doesn't really make sense for me even when i tryed to ask Ai And the more and more i keep asking Ai it seems like i didn't done anything myself I wrote the code 3 times already but if i tryed to write it now i think it will be a disaster