Skip to content
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

Add support for specifying the screens of panels #96

Merged
merged 8 commits into from
Mar 31, 2024
Merged

Add support for specifying the screens of panels #96

merged 8 commits into from
Mar 31, 2024

Conversation

magnouvean
Copy link
Collaborator

Fixes #52.
This solution is a bit hacky, but essentially how it works is that if the user specifies any non-default screen for any of the panels, we create an immutable entry for lastScreen for the panel, then restart the plasmashell after the lastScreen key has been made immutable. This was the only way I could figure out to make kde not change the lastScreen key all the time. It also was not possible to write immutable entries directly from plasma-scripts, so this was the best solution I could come up with. There is a lot of room for improvement on the plasma side here I reckon, so hopefully some time in the future a more elegant solution is possible, but this should do the job in the meantime (as it is fully functional at the very least).

If no custom screen is set for any of the panels everything works exactly like it did before this pr, which makes this a fairly safe and good solution I think.

@magnouvean magnouvean merged commit a32d012 into nix-community:trunk Mar 31, 2024
1 check passed
@magnouvean magnouvean deleted the panels-multiscreen branch March 31, 2024 09:21
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.

Add Desktop option for Panel Module
1 participant