-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
Cursor becomes tiny when switching apps (xcursor) #6983
Comments
waybar and firefox follows the gsettings, I'd assume qt apps behave like on desktop with tiny cursors.. and I'm not having this issue with hyprcursor-git, since u don't have hyprcursor themes installed, will it help to comment out the line I still cannot reproduce this issue with this line added to my conf, and I just noticed you're on git branch so disregard my comment.. |
I haven't realized this line existed. I yanked an example config from hyprland wiki long ago when I was setting up my config. I have commented out that line and still have the issue. Moreover, that line existed from the very beginning of using hyprland so im sure recent commits have caused the issue. Instances of the cursor size turning tiny: opening a new workspace with no windows (always), having the cursor on hyprland window border, moving the cursor from firefox (librewolf) to alacritty (terminal emulator). It doesnt turn tiny when moving from waybar to alacritty. |
Yep, I just came here because immediately after updating to the latest git, I now have this same issue. |
You are likely using an XCursor. Have you tried installing a hyprcursor theme? |
I tried installed hyprcursor theme
I made size bigger, but cursors are different theme from window to window. Btw theme sucks and there is no variety to choose |
you'll have to set the XCursor theme to be the same theme as your hyprcursor theme, just compiled for X. |
patch.txt |
That's my path to consistent cursors, may be useful for others: # 1) install the only cursor package that supports x and hyprland at the same time
yay -S bibata-cursor-git
# 2) set cursor for gtk-2
gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Classic
# 3) TODO: set cursors for gtk-3 via lxappearance to Bibata-Modern-Classic
# 4) edit hyprland.conf hyprland.conf
without patch sizes ok |
I had this exact problem - was also a regression when Hyprland switched from wlroots-hyprland to aquamarine. Wrote up this workaround it after some trial and error. Same as everything mentioned above, but I've documented the full steps here for using the Perhaps check if this works first before exploring other themes to help isolate the issue. |
with normal hyprland packages like hyprland, hyprcursor etc i set both hyrpcursor and xcursor to same theme
but when i installed all git version to use hyprpm the cursor becomes tiny and no theme when moved to different apps |
I dont think im using a xcursor theme. Ive been using this same setup since many months. 20240726_193029_Alacritty.mp4Ive followed @coffebar guide to consistent cursors but it seems either xcursor or hyprcursor themes arent working in some cases. Ive confirmed this by commenting either theme env vars and restarting hyprland. It produces the same results as the video. Also, all the apps shown in the demonstration are wayland apps (alacritty, librewolf (firefox fork) with MOZ_ENABLE_WAYLAND=1, alacritty terminal emulator, waybar and of course hyprland (built from commit 33a5c8c) |
I posted a patch 2 days ago and nobody bothered to try it, so I will ignore your laments |
have no idea where to apply that patch , i am newbie . so have zero idea where to paste it or to add into any other file |
Here's how you can do it when building from source:
As an aside, you can revert the patch with patch -p1 -R < patch.txt |
@nktnet1 i actually installed from aur(Arch) , hyprland-git version , ill revert back to hyprland version (not git one) that works well. Thanks for help :) |
@nktnet1 |
Applied that patch and built Hyprland, still same results. System/Version infoHyprland, built from branch main at commit a4b8e3808b29f4861601ffc859241f46da5aa980 (apply xcursor patch). flags: (if any) System Information: GPU information: os-release: NAME="Arch Linux" plugins: ======Config-Start====== Config File: /home/alpha/.config/hypr/hyprland.conf: Read Succeeded Hyprland config fileThis config file will get the config data from various other files$confdir = $HOME/.config/hypr $terminal = alacritty env = DESKTOP_SESSION,hyprland exec-once = /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+' exec-once=[workspace 2] $browser source = $confdir/display.conf Config File: /home/alpha/.config/hypr/display.conf: Read Succeeded monitor=eDP-1,1920x1080,auto,1.25 Config File: /home/alpha/.config/hypr/looks.conf: Read Succeeded https://wiki.hyprland.org/Configuring/Variables/#generalgeneral {
} https://wiki.hyprland.org/Configuring/Variables/#decorationdecoration {
} https://wiki.hyprland.org/Configuring/Variables/#animationsanimations {
} See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for moredwindle { https://wiki.hyprland.org/Configuring/Variables/#miscmisc { xwayland { Config File: /home/alpha/.config/hypr/input.conf: Read Succeeded https://wiki.hyprland.org/Configuring/Variables/#inputinput {
} https://wiki.hyprland.org/Configuring/Variables/#gesturesgestures { cursor { binds { Example per-device configSee https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more#device { name = epic-mouse-v1sensitivity = -0.5#} $TOUCHPAD_ENABLED = true device { Config File: /home/alpha/.config/hypr/keybinds.conf: Read Succeeded https://wiki.hyprland.org/Configuring/Keywords/$mainMod = SUPER # Set 'SUPER' Key as Mainmod key bind = $mainMod, w, exec, $terminal Navigating and moving windows to workspacesbind = $mainMod + CTRL, code:35, workspace, r+1 # use ] to go to the next workspace Move focus with mainMod + vim keybindsbind = $mainMod, h, movefocus, l Move focus with mainMod + vim keybindsbinde = $mainMod + SHIFT, h, exec, echo "l" 20 | $confdir/scripts/window_movement.sh Switch workspaces with mainMod + [0-9]bind = $mainMod, 1, workspace, 1 Move active window to a workspace with mainMod + SHIFT + [0-9]bind = $mainMod + SHIFT, 1, movetoworkspace, 1 Resizing current windowbinde=$mainMod,right,resizeactive,10 0 binde=$mainMod + SHIFT,right,resizeactive,50 0 Move/resize windows with mainMod + LMB/RMB and draggingbindm = $mainMod, mouse:272, movewindow Scroll through existing workspaces with mainMod + scrollbind = $mainMod, mouse_down, workspace, e+1 Scroll through all workspaces with CTRL + mainMod + scrollbind = $mainMod + CTRL, mouse_down, workspace, e+1 Special workspacesbind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod + CTRL, 1, togglespecialworkspace, s1 Volume controlsbindel =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_SINK@ 0.02+; notify-send --category=device --urgency=low --hint=int:value:$(pactl get-sink-volume $(pactl get-default-sink) | grep -oP '\d?\d?\d%' | head --lines=1 | sed 's/%//g') volume_event mic mute togglebindl =, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle media controlsbindl =, XF86AudioPlay, exec, playerctl play clipboard manager binds (keyboard history)bind = $mainMod, v, exec, cliphist list | $clipboardMenu | cliphist decode | wl-copy power controlsbindl = $mainMod + SHIFT, q, exec, $powermenu Brightness controlsbindel =, XF86MonBrightnessUp, exec, val=$(brightnessctl --device='intel_backlight' -m s +1%); notify-send --category=device --urgency=low --hint=int:value:$(($(echo Screenshotsbind = Screenrecordbind = ALT, Print, exec, $confdir/scripts/screen-record.sh true false Change wallpaperbind = $mainMod + Alt, W, exec, $confdir/scripts/hyprpaper-gen.sh -r -S Bind to toggle touchpadbind =, XF86Search, exec, $confdir/scripts/touchpad-toggle.sh Config File: /home/alpha/.config/hypr/workspaces.conf: Read Succeeded layerrule = blur,waybar windowrulev2 = stayfocused, class:^(org.kde.kwalletd6)$ windowrule = float, title:^(Picture-in-Picture)$ windowrulev2 = float, class:(org.keepassxc.KeePassXC), title:(Unlock Database - KeePassXC) Config File: /home/alpha/.config/hypr/plugins.conf: Read Succeeded exec-once = hyprpm reload -nbind = ALT, grave, hyprexpo:expo, toggle # can be: toggle, off/disable or on/enablebind = $mainMod, grave, overview:toggleplugin {
} ======Config-End======== To note:
|
@sudoAlphaX what do you see in the logs? e.g.
|
hey @nktnet1, these are the lines containing 'cursor' in my hyprland.log file
Just to be on the same page, I do not want to use any specific theme (Hyprcursor or XCursor). Im happy with the current default cursor theme. I just don't want the cursor size inconsistency across various windows and surfaces. |
How can I find out whether the hyprcursor is working or not? |
@aljustiet, you can see that in your hyprland.log (make sure to set disable_logs = true under debug).
|
How Did you make the |
It was working for me with rose-pine theme until today I updated Hyprland from AUR. UPD: tried to roll back, but it doesn't help, seems issue is coming not from Hyprland's update Kooha-2024-08-26-21-52-36.mp4UPD: workaround: add this on startup (for RosePine theme) gsettings set org.gnome.desktop.interface cursor-theme BreezeX-RosePine-Linux
gsettings set org.gnome.desktop.interface cursor-size 32 |
@coffebar I couldn't reproduce the issue on the latest hyprland-git and aquamarine-git: but I've seen the |
yeah, in my case the problem is gsettings can't save settings - cursor fallbacks to default every time after exit the session. Idk why, but it seems not an issue for hyprland |
@coffebar yeah, the workaround of adding it to
Many reported similar issues, some with solutions
|
Regression?
Yes
System Info and Version
System/Version info
Description
Sometimes, while changing workspaces or while moving the cursor in and out of different apps, the cursor changes its size and becomes tiny.
How to reproduce
Move the cursor into an empty workspace
Crash reports, logs, images, videos
20240722_231419_librewolf.mp4
hyprcursor-git
)The text was updated successfully, but these errors were encountered: