Skip to content

nexus: add cursor theme selector to wallpaper & style page#1563

Open
vitormarquesgithub wants to merge 5 commits into
caelestia-dots:mainfrom
vitormarquesgithub:feature/cursor-theme-selector
Open

nexus: add cursor theme selector to wallpaper & style page#1563
vitormarquesgithub wants to merge 5 commits into
caelestia-dots:mainfrom
vitormarquesgithub:feature/cursor-theme-selector

Conversation

@vitormarquesgithub

Copy link
Copy Markdown

Adds a cursor theme selector sub-page to the Wallpaper & style page in the nexus settings.

What this adds

  • A "Cursor" button in the Wallpaper & style page alongside Wallpapers and Colours
  • A sub-page listing all cursor themes installed in /usr/share/icons, ~/.local/share/icons and ~/.icons
  • Highlights the currently active theme with a check mark and primary colour
  • Applies the selected theme via hyprctl setcursor and gsettings
  • Persists the selection to the Hyprland config variable $cursorTheme via sed

Notes

  • Cursor size is hardcoded to 24 — the same value used by the default caelestia hyprland config
  • Assumes the cursor theme variable is stored as $cursorTheme in the Hyprland variables config
  • The theme list is populated lazily on first page open, not at shell startup

Demo

cursor-theme.mp4

…sing

- Add sanitize() function to strip unsafe characters from theme names
- Pass theme name as positional argument ($1) instead of concatenating
  into shell command to prevent injection
- Remove unused 'loaded' property
- Ensure qmlformat compliance
- Replace cut -d' ' -f3 with sed 's/.*= *\//' in currentProc for
  robust parsing regardless of spacing around '='
- Add grep check before sed in applyProc to handle missing
   variable, falling back to appending to the config
@vitormarquesgithub vitormarquesgithub force-pushed the feature/cursor-theme-selector branch from c0f699e to be6d403 Compare June 12, 2026 21:17
@PixelKhaos

Copy link
Copy Markdown
Contributor

This might be something to hold off on a bit, as I think instead of adding too many toplevel options there, might be a subpage of "colours and style" where this functionality can sit as a single dropdown selector.

@vitormarquesgithub

Copy link
Copy Markdown
Author

This might be something to hold off on a bit, as I think instead of adding too many toplevel options there, might be a subpage of "colours and style" where this functionality can sit as a single dropdown selector.

Makes sense, happy to rework it as a dropdown inside a Colours and Style subpage. Should I wait for maintainer input on the exact structure before refactoring, or do you have a design in mind?

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