Add cursor selection menu #1400
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit features a new style menu that allows the user to change their cursor theme.
Three new scripts were created:
In addition, the file "omarchy-menu" was also updated to accommodate the new menu option.
The cursor is set by searching /usr/share/icons and ~/.local/share/icons for the provided theme name and applies the changes by 1) updating ~/.config/hypr/envs.conf with two environment variables "HYPRCURSOR_THEME" and "XCURSOR_THEME", 2) changing the active cursor theme using hyprctl, and 3) updating the GTK cursor theme using gsettings.
More information can be found here: https://wiki.hypr.land/Hypr-Ecosystem/hyprcursor/
The cursor theme selection list is built by searching the two directories mentioned previously by finding directories that contain a child directory called "cursors" (which indicates a cursor theme).
The current cursor theme is detected by searching the user's envs.conf for the value of "HYPRCURSOR_THEME".