mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 04:35:59 +01:00
more notes for hyprcursor
This commit is contained in:
parent
5f3e727ffe
commit
19a57fbc50
2 changed files with 16 additions and 15 deletions
|
@ -116,20 +116,7 @@ Use a wayland-compatible locking utility using WLR protocols, e.g. `swaylock`.
|
|||
|
||||
# How do I change me mouse cursor?
|
||||
|
||||
1. Set the GTK cursor using [nwg-look](https://github.com/nwg-piotr/nwg-look).
|
||||
2. Add `exec-once=hyprctl setcursor [THEME] [SIZE]` to your config and restart Hyprland.
|
||||
|
||||
If using flatpak, run `flatpak override --env=~/.themes:ro --env=~/.icons:ro --user` and put your themes in both `/usr/share/themes` and `~/.themes`, and put your icons and cursors in both `/usr/share/icons` and `~/.icons`.
|
||||
|
||||
For Qt applications, Hyprland exports XCURSOR_SIZE as 24, which is the default.
|
||||
You can overwrite this by exporting XCURSOR_SIZE to a different value with `env`.
|
||||
|
||||
You can also try running `gsettings set org.gnome.desktop.interface cursor-theme 'theme-name'` or adding it after `exec-once=` in your config.
|
||||
|
||||
If you do not want to install a GTK settings editor, change the config files according to the
|
||||
[XDG specification (Arch Wiki link)](https://wiki.archlinux.org/title/Cursor_themes#Configuration).
|
||||
Make sure to also edit `~/.config/gtk-4.0/settings.ini` and `~/.gtkrc-2.0` if _not_ using a tool
|
||||
(like `nwg-look`).
|
||||
See [hyprcursor](../Hypr-Ecosystem/hyprcursor)
|
||||
|
||||
# GTK Settings no work / whatever
|
||||
|
||||
|
|
|
@ -24,4 +24,18 @@ env = HYPRCURSOR_SIZE,24
|
|||
|
||||
Go to the [hyprcursor repo](https://github.com/hyprwm/hyprcursor)
|
||||
|
||||
See the `docs/` and `hyprcursor-util/` directories for instructions.
|
||||
See the `docs/` and `hyprcursor-util/` directories for instructions.
|
||||
|
||||
## Important notes
|
||||
|
||||
Although many apps support server-side cursors (e.g. qt, chromium, electron, hypr ecosystem)
|
||||
some apps still don't (like gtk)
|
||||
|
||||
Apps that do not support server-side cursors and hyprcursor will still fall back to XCursor.
|
||||
|
||||
For those apps, you need to export `XCURSOR_THEME` and `XCURSOR_SIZE` to a valid XCursor theme,
|
||||
and run `gsettings set org.gnome.desktop.interface cursor-theme 'THEME_NAME'` for gtk.
|
||||
|
||||
If the app is a flatpak, run `flatpak override --env=~/.themes:ro --env=~/.icons:ro --user` and put
|
||||
your themes in both `/usr/share/themes` and `~/.themes`, and put your
|
||||
icons and XCursors in both `/usr/share/icons` and `~/.icons`.
|
Loading…
Reference in a new issue