-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Unable to change mouse cursor size #417
Comments
As Alberts mentioned in the other issue, the settings dialog in GNOME Settings generally only applies to Metacity/gnome-shell, however, it also changes |
GNOME Settings only changes GSettings value. You can do same from XSettings plugin from GNOME Settings Daemon exports cursor size as Metacity uses XSettings. Compiz use X resources. |
All sounds great, however, I had the impression Regolith was aiming to be user friendly. If a user is expecting to dig around in config they would already be using Arch and DWM. There must be a fix albeit not the highest priority. |
Oh, I agree, it should definitely respect the |
@savaged , yes Regolith aims to be user friendly. You've just hit a region that we haven't had a chance to get to yet. |
I've noticed that the cursor size does change, but only when specific apps are selected. For example |
@yssoe try running this, then logging back in our refreshing your session: $ echo "Xcursor.size: 48" >> ~/.config/regolith/Xresources |
File created, no change to the environment on log out/in on a 2020 Dell XPS 13 with 4k screen. The following commands work persisted through reboot for backgrounds: |
I'm having this problem on a fresh install on a Dell XPS 15 9500. I have tried setting the cursor size via setting an override ~/.Xresources and by using the gsettings above, and neither work |
If this does not work for you, nothing comes to mind as to what could be different to be causing the regression. I do not have an XPS or other high density device to test with, but I can clearly set the cursor to any size using the commands I just mentioned. |
@kgilmer This does not work on a fresh install of Pop_os 20.10 + Regolith-desktop today on a 15.5" Thinkpad P1 w/4K screen.
Gnome's hidpi mode renders differently when you actually have an hidpi screen. I was testing it on an 1080p screen earlier and nothing changed. Gnome looks for the DPI according to the display size to actually enable it. |
Hmm, so you're saying that if I had a hidpi screen then my cursor would not change @eduncan911 ? @muktupavels are you aware of anything in flashback that would be doing this? |
Interestingly enough, I also have a 4K screen, which is set to a 1080p resolution, and none of the methods mentioned in this thread work for me .. maybe that actually is the issue? To be clear: I have not set any scaling factor, the display it self as running at 1920x1080, but it is capable of going all the way up to 4K |
Short update: it does work when I'm hovering over/using a Snap app .. which is even more puzzling 😕 |
For the record, my 4k screen is running at 4k resolution - not 1080p. |
Looks like there are problems also in GNOME Flashback session! Maybe problem is in cursor theme? Some cursor themes I tried does not have two largest cursors. Only Yaru had all cursors sizes (tested on non-HiDPI monitor). I guess on HiDPI it is worse as it needs bigger cursors... |
@muktupavels I don't believe it's the cursor theme. And, Regolith defaults to use
But yeah, it's acting as though it doesn't exist. I was hunting for some good HiDPI cursor icons last night but kept running into the Adwaita versions (or an extension of those versions). |
Then why Yaru works and Adwaita not? https://bugzilla.gnome.org/show_bug.cgi?id=747386 For HiDPI icon theme needs to have 48, 64, 96, 128 and 192 icons to make it possible to use any of 5 sizes. Arrow icon in Yaru theme has 24, 32, 48, 64 and 96 sizes. Works fine in non-HiDPI case. And on HiDPI works only first 3 sizes (default (24), medium (32) and large (48)) and larger (64) and largest (96) does not work because there is no 128 and 196px icons. Looks like Adwaita has icons, so most likely my JHBuild session is not using Adwaita and are using something else that has no needed sizes. My main install/session does not have Adwaita icon theme... https://linux.die.net/man/3/xcursorsetdefaultsize That might confirm that my JHBuild session is not using Adwaita icon theme. Metacity uses |
EDIT: Ah, I was typing this long reply below before you posted the message above. I think we are on the same path. However, what i posted below DOES work now. Solved (somewhat) for my Pop_OS! + Regolith-desktop install. It's the I was able to get what other i3wm users complain about working: cursor is large/normal in some apps, but not most. I highly suspect it's the way i3wm/Xresources is built to fallback to the lowest cursor resolution if there is no GTK+ or some other TK override that matches Adwaita - and I suspect Gnome enforces that for every app it launches. However, i3wm does not when it launches an app. What those settings/ENV vars are, I have no clue. I just see that the cursor theme return to a default tiny 24 or 32 pixel size most of the time. After a good bit of searching (should be much easier to find HIDPI icon themes!), I ran across the Capitaine HiDPI cursors. https://github.com/keeferrourke/capitaine-cursors Download and extract to
And small tweak to the Xresources:
A quick MOD+SHIFT+R restart and now I have enormous but most importantly consistent mouse icons, across GTK+, i3bar, Brave (Chromium), and Terminal! The path forward: I think the lowest level of effort is to add a Wiki/Document somewhere explaining that HIDPI monitors will need some changes, such as a supported HiDPI cursor theme, such as https://github.com/keeferrourke/capitaine-cursors. The highest level of effort is to find a support Adwaita icon theme to include with Regolith-Desktop. Or, some other HiDPI-compatible icon theme like the one mentioned above. The most important part is that regolith would be using this new icon theme out of the box, under our control. So a quick Xresources tweak will Just Work(tm) without anything else done by the user. |
From my post above, Adwaita works fine under Gnome and can actually grow quite large in size - too large! So it's something in the i3wm eco-system that doesn't support this Gnome-formatted icon theme that comes with Ubuntu/Pop_OS, that many many i3wm users complain about. I just gave
Only the custom icon theme I downloaded above works in HiDPI UHD 4K screen. EDIT: ha, Pop doesn't include |
Another bit of info (sorry for the multiple comments, but this is worth noting separately): the "Accessibility" seems to only affect GTK+ apps like Brave (Chromium) and Terminal within i3wm. It does not change the cursor theme for anything else, like the Settings control panel, i3bar hover, etc. I found the Accessibility 5 sizes only matches normal 48, 96, 128 sizes. It does not support 64, 72, nor 196. The "middle" option matches |
Adwaita in your From https://linux.die.net/man/3/xcursorsetdefaultsize:
Looks like that is problem why my main session does not show Adwaita as icon theme. No idea why Ubuntu does not have cursors directory in Adwaita icon theme as upstream repo has it. Adwaita did not work for me, because my JHBuild session is in custom prefix /mnt/some-disk/JHBuild/latest/install. libXcursor simply did not load theme from there and system version simply has no needed directory. Just tested by copying Adwaita icon theme from custom prefix to /home/user/.icons and Adwaita also works for me. And here is code that search for cursor file: If it does not find cursor in requested theme, it falls back to default theme. Ubuntu default theme inherits DMZ-White theme. And this one does not have 64px and 96px icon at least for arrow cursor. So in GNOME Flashback problem definitely was in icon theme. In my case even if I had selected Adwaita, it was loading DMZ-White theme. Cursor theme and/or size changing works. Accessibility does nothing with cursor. It just changed GSetting value - it changes cursor-size under org.gnome.desktop.interface schema. That setting is used by xsettings plugin in gnome-settings-daemon: How these settings are used depends on wm and/or applications. For example Metacity use |
This is some incredible deep diving by @eduncan911 and @muktupavels ! I noticed that there is another Adwaita icon theme provided by Ubuntu; @eduncan911 can you check and see |
Well, you quoted the reason why:
The
So, there is no cursors directory. It must be an advanced technique that Gnome/Ubuntu follows but doesn't work within i3wm (or Xfce that I've seen related posts talk about).
We're desperate! ;)
So upon installing this package, it adds the missing I can confirm this does indeed fix everything! I can just specify the
So in summary, for HiDPI, install |
OT and quick question (instead of opening a whole another issue): It seems the final piece to true HiDPI glory is the Any idea what to change for these to honor 196 dpi? On a related note, the Help menu (MOD+SHIFT+?) scales properly, as well as the i3bar, when using Xresouces' I switch between 192 and 96 whenever I plug in my external 1080p displays (and run 1080p on my 4k screen). I now have to change the Here's the script I wrote when switching res to 1080p when connected to external monitors (1080p looks very crisp on UHD! it's not 4k, but looks much better than just a 1080p screen): EDIT: Updated script adding the
I'll eventually find the time to hook into Gnome's Regolith aims to be user-friendly, without all of this custom script. Perhaps we can build in an HiDPI set of tools to automate these things? I got to write up a blog post on all of this... |
GNOME Settings Daemon updates
|
I've verified that the default icon theme (
@eduncan911 did you see: davatorium/rofi#254? Can you LMK if it works for you or not?
I'm open to it. There are certainly a lot of users that struggle w/ hidpi configurations. As I don't have a hidpi setup myself, it's hard for me to really know what would be best. Feel free to write up some design ideas in the wiki if you like @eduncan911 : https://github.com/regolith-linux/regolith-system/wiki @muktupavels thanks as always for the help w/ troubleshooting and links to the source code when relevant. I learn something valuable every time we correspond. 😄 |
One thing to note is that I have built my 4k display all based on Gnome's built-in Scaling feature, set to 200% for me. I did this as I occasionally switch back to Gnome on my Pop_OS! install. Using scaling of 200% remains compatible with Pop_OS's custom HiDPI Daemon they have running (and actually works on Regolith as well, for the scaling parts). And I must admit, Pop_OS has some great usability improvements, especially in HiDPI detection and switching. And Regolith-Desktop installed ontop of Pop_OS! is like a perfect match of pure Gnome (not Ubuntu's gnome) + Pop_OS/System76 power/hybrid/Optimus/AMD tweaks + Pop_OS HiDPI/LoDPI daemon and other tools + Regolith i3wm. I'm in heaven here. Just wanted to say that at no given time did I use Tweaks to scale the fonts nor GTK/QT environment settings. That's why all these DPI settings need to be tweaked to wrap up the look-n-feel - which is working great now.
From a user's perspective, I would recommend a few suggestions:
HiDPI Displays I'd be happy to submit a PR for documentation there if you like. It's not a lot of work for the end-user. It's just a few specific configuration items to add at this point. If it gets long-winded, maybe a dedicated page that the above would link off to.
This is the cleanest setup and would allow anyone to tweak a few DPI settings in the config, and be good to go. Of course, this means a coupe more dependencies and a larger install footprint - in exchange to being the first i3wm package that works out of the box with HiDPI screens.
Last night I tried searching and found Yep, that worked to scale it (for the most part).
I can't take a screenshot with Rofi open to show what it looks like. While it does scale properly with Question: does Regolith have some hardcoded width override for Rofi? Because when I set That's fine as I usually only type a couple of letters anyways. I'll open an issue over there, as |
Nice!!
Yes, it's defined in the stylesheet: https://github.com/regolith-linux/regolith-styles/blob/master/lascaille/rofi.rasi#L29 The file your system is using will vary based on what
PR would be great @eduncan911 . As it happens we're in the middle of a website migration to allow for better support for translations. I'm not sure if now is a good time to change the docs.. @moritzheiber should we hold off on website edits or changes are ok now? |
Here's what I'm using at this moment:
That makes sense, that it's in the stylesheet. I haven't been able to find a way to take a screenshot of it yet. |
@kgilmer I found and changed it to 30%, and it looks pretty damn good now on both 2k and 4k.
Obviously this is not a preferred method (will be overwritten on next update). I feel that's a much larger update, as you may want to convert many files to 30%, and then evaluate if anything else should be percentage. I think that's what you want to capture in regolith-linux/regolith-styles#38, correct? |
Great idea to use percentage over pixel units 😄 👍 |
@eduncan911 yes, see the commit I associated to this issue just now. This will be available for testing in the |
...perhaps this is the universe's way of telling me it's ok to go ahead and buy a new thinkpad even though the one I have is perfectly fine... 🤣 |
To summarise what worked for me from all the posts above (special thanks to eduncan911):
And I had done this ealier (not sure if nessesary):
Now works across all apps. Life changer! |
For the record, this is the current version of my script to switch back and forth between 2k and 4k:
@seba-i Try adding the other two options, which will also handle the bar and menu items.
Ps, I highly prefer reallllly big mouse cursors. I'm getting too old... Resize accordingly. |
@moritzheiber Should I submit a PR now to add some documentation? Or, hold off a bit longer for the redesign of the website? Ref: #417 (comment) |
@eduncan911 the website is ready to go! Please add your |
Since original issue is resolved, closing and creating separate ticket for docs: #584 |
Feel free to assign this to me so it shows in my github assignments.
…On Mon, Jun 21, 2021 at 10:33 AM Ken Gilmer ***@***.***> wrote:
Closed #417
<#417>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#417 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZUFHAHQIXJOKCBUBEM7TTT5EVHANCNFSM4NINEIIQ>
.
|
I run into this on regolith2.. I see the ~/.config/regolith folder is now ~/.config/regolith2 instead and there is a Xresources file. So the command now is: echo "Xcursor.size: 48" >> ~/.config/regolith2/Xresources
# and if you want to scale the bar aswell:
echo "rofi.dpi: 192" >> ~/.config/regolith2/Xresources
echo "Xft.dpi: 192" >> ~/.config/regolith2/Xresources
# load changes
regolith-look refresh |
Describe the bug
After raising issue #415 we decided to split that issue. This relates just to the fact the mouse cursor size cannot be changed even after selecting a different size from Settings. (The first issue raised relates to the order of the dialogs).
To Reproduce
Steps to reproduce the behavior:
Open Settings. Select Universal Access. Select Cursor Size and pick a different size. Move the Settings dialog to reveal the mouse cursor selection pop-up. Close that dialog. No change is made to the cursor size.
Expected behavior
The mouse cursor size changes.
Installation Details
OS: Ubuntu 20.04 focal
Kernel: x86_64 Linux 5.4.0-31-generic
Shell: bash 5.0.16
Resolution: 3286x1080
DE: GNOME 3.36.2
WM: i3
GTK Theme: Ayu-Mirage-Dark [GTK2/3]
Icon Theme: Moka
Font: Cantarell 11
Additional context
Fresh full install of Regolith OS
The text was updated successfully, but these errors were encountered: