-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support kde6 panel floating #77
Conversation
Thanks for finding this out @mlyxshi <3 It's not in the documentation yet |
It doesn't work in plasma 5, so we should either say that it only works on 6, or set the panel to be floating like we do now if you're running plasma 5 |
It is a little bit tricky. Floating is one of the location in kde5, but a boolean key in kde6. I don't know how to handle this transition. Personally, I have upgraded all my linux desktop to kde6 except steamdeck. This pr doesn't change the current kde panel configuration in my steamdeck, so I think it's backward compatible. |
It is backwards compatible in the sense that it doesn't break anything in plasma 5, however I think that having two different ways to set a panel to floating is confusing. Imo we should check if we're running on plasma 5 or 6, and then change |
@mlyxshi (or anyone that's running plasma6) can you run |
20
It's originated from plasma... I'm also confused |
Plasma 5 also has 20 so I'll have to use
My bad, I don't think I'm explaining myself properly 😅 Before plasma 6, if you wanted to make a floating panel you needed to set If we add an option for What I think we should do remove the ability to set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me otherwise.
modules/panels.nix
Outdated
@@ -67,6 +67,7 @@ let | |||
example = "autohide"; | |||
description = "The hiding mode of the panel."; | |||
}; | |||
floating = lib.mkEnableOption "enable or disable floating style"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a disclaimer that it is plasma 6 only. Should also start with a capital letter and end with period as the rest of the descriptions
Yup same for me |
One thing though I am not sure about is how we would determine if you are running plasma 5 or 6. Would it not be possible to have both installed at the same time? And even if it isn't would it be possible for plasma-manager which is built on top of home-manager to be able to check if plasma 6 or 5 is installed given that they are declared on the system-level |
https://develop.kde.org/docs/plasma/scripting/api/#version-numbers
|
Right, forgot that we can check for this in the script itself and not from nix. Sound like a good idea then! |
Sounds great. I don't really want to go back to plasma5 and test floating stuff, because I don't use it anymore. |
I understand that, tbh I am not overly keen to dive back and forth either, but will probably do some minimal testing to keep plasma 5 support somewhat alive. I reckon we can merge as soon as the above conversation about the description is resolved I reckon. The description could be for instance |
@magnouvean description updated |
turns out the one I used before was intended for Plasma 5 nix-community/plasma-manager#77
In
plasma-interactiveconsole
, I try to print all object key of panel and find this keyfloating
#62