Skip to content

Conversation

@4ka-s
Copy link

@4ka-s 4ka-s commented Nov 20, 2025

possibly not a sub project and fixed dual monitor notification spawning

@4ka-s
Copy link
Author

4ka-s commented Nov 20, 2025

ardox if you're running out of patience I understand lmao
I'll do better

Copy link
Member

@LeVraiArdox LeVraiArdox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm... It's good that it works, but don't take the "if it works don't touch it" too literally. The current structure is really not optimized, professional, logical (and it looks like an AI written code).

To implement this, you'd have to remake the whole thing. You should look at the sleex code to see how you should use Quickshell.

exec-once = hyprctl setcursor Bibata-Modern-Classic 24

# Onscreen Keyboard
exec-once = /usr/share/sleex/modules/virtualKeyboard/VirtualKeyboard.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a QS module, I don't understand why a script is necessary

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I apologize for my ignorance and naivete.
The shell script detects multiple monitors and executes "quickshell -q [QML FILE]" but I infer from your comment that it is not the proper way of doing things.

Thank you for making me aware, I will certainly work on it to make the necessary changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use image icons. There is a MaterialSymbols QML property.

MaterialSymbol {
    text: "your_icon_name" 
    iconSize: Appearance.font.pixelSize.normal
}

You can find the available icons here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being new to QML I haven't had a clue. Thank you dearly for helping me.
Again, I profusely apologize for the lack of better code and conduct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/4ka-s/Virtual-Keyboard

Inside the build files you'll find the C code for the binaries.
Close and Open are the binaries that create and kill the quickshell process.

I do realize that it is an absurd way of doing things, I was unaware if it was unacceptable.

Thank you dearly for your great critique, I assure you I will work on more concrete code conduct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing as the other icon

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sir. I'll get at it.

import Quickshell.Io
import QtQuick

ShellRoot {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're creating a new shell instead of a shell element. Take inspiration on the dashboard to see how to make panels.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for providing your valued guidance. I truly appreciate these remarks of yours.

import Quickshell.Io
import QtQuick

ShellRoot {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ANOTHER shell for the osk ??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, one for the notification and another separate for the onscreen keyboard. I infer from your comment that this too is an absurd way of doing things; I'll take necessary measures.

Thank you for for pointing out all the flaws. I truly find your guidance valuable as a new learner.


Text {
anchors.centerIn: parent
text: "📌"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MaterialSymbol would be more appreciated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being aware of it now, I'll make the necessary changes! Thank you again, Ardox.

Rectangle {
width: 2/keyboardContainer.xScaleObject
height: (keyboardContainer.height * 0.8)/keyboardContainer.yScaleObject
color: "#8F8F8F"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't hardcode colors, there is a special method to use colors on the Sleex shell... Which is not appliable here because it's not the same shell

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't aware this was possible at all. Now that I am aware, I assure you I will figure out my way to that.
Thank you again, for bringing this to my attention. Your patience is truly appreciated.

}

Repeater {
model: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "="]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoding the keys ?

  • Doesn't supports mutliple layouts
  • A model can accept a number (12)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being quite new to this, I could not fancy a way to not hard code the keys. I am now aware that method is unacceptable. I will surely do better. My apologies Ardox.

isSpecial: true
}

Repeater {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making multiple repeaters ? One for each lines ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants