Re: [gnome-flashback] How to get scaling factor from a shell script



Using GetCurrentState method from org.gnome.Mutter.DisplayConfig D-Bus interface:
https://gitlab.gnome.org/GNOME/gnome-flashback/blob/master/backends/org.gnome.Mutter.DisplayConfig.xml#L343
https://gitlab.gnome.org/GNOME/mutter/blob/master/src/org.gnome.Mutter.DisplayConfig.xml#L402

On Sat, Feb 22, 2020 at 3:35 AM Ken Gilmer via gnome-flashback-list <gnome-flashback-list gnome org> wrote:

It is common for users to expect all applications to respect the gnome-control-panel Display Scale Factor.  I would like to possibly set Xft.dpi based on this setting, however I cannot find a gsettings key that represents this value from the control panel.  I've recursively dumped all keys with 'scal' in them before and after changing scaling from 100% to 200% but no values change.  In source I find reference to the key 'scaling-factor' but again, do not see any gsettings changes after changing the value via Settings.  Any suggestions to how I can read this setting from a script?

TIA
ken

_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list


--
Alberts Muktupāvels


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]