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

hyprland: init module #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

hyprland: init module #14

wants to merge 2 commits into from

Conversation

nezia1
Copy link
Contributor

@nezia1 nezia1 commented Feb 21, 2025

This PR adds Hyprland support for hjem-rum.

Things done

  • Settings mapped to hyprlang
  • Plugins (can either take in a path or a package)
  • Automatic environment sourcing (using the user's NixOS config to determine whether or not UWSM is enabled and imports environment the proper way)

Note that the latter will need to be added once hjem gets support for environment variables (feel-co/hjem#16), hence the draft status of this PR.

@nezia1 nezia1 force-pushed the add-hyprland branch 2 times, most recently from c3f0f85 to 5f72a42 Compare February 22, 2025 16:33
@nezia1 nezia1 marked this pull request as ready for review February 22, 2025 16:35
@nezia1
Copy link
Contributor Author

nezia1 commented Feb 22, 2025

Now that sesssion variables have been merged into Hjem, we can make this work. I've been thinking about something though, how do we want to source environment?

I was thinking of doing it at compositor level as this way, we can ensure that it will be properly sourced (also uwsm integration has been implemented). We could also do it at display manager level, but this will require being careful, as DMs environment implementation can be very different (see the arch wiki for reference).

Note that it also differs between Xorg / Wayland, even for the same display manager, so that will have to be taken into account as well. Both approaches would work, the latter would just require carefully sourcing what DM(s) the user is running, and probably a global module but I'm unsure how I would want that to be structured.

Either way, please let me know your thoughts :)

@nezia1
Copy link
Contributor Author

nezia1 commented Feb 23, 2025

Added support for setting XDG_* variables related to desktop when not using uwsm, as per https://wiki.hyprland.org/Configuring/Environment-variables/#xdg-specifications.

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.

1 participant