Tuesday, April 30, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 483  / 2 Years ago, sun, august 14, 2022, 8:23:09

Hi everyone and thank you for any help or advice that you could give me.


I work half time from home and half time in person in my office; however, the screen size/resolution of my available monitor at home (24", 1920 x 1080) vs at work (27", 3840 x 2160) are very different. The problem occurs when I open my session from home (I use NoMachine or X2Go to see the desktop), because everything is so small. What I do is to change the resolution of the screen (3840... -> 1920...), but then the font size of everything is gigantic, so I reduced the font sizes with MATE Tweaks - Appearane Preferences -> Fonts. That works perfectly while I am at home, but then, when I come to the office, all the Fonts are now too small to read and changing the resolution doesn't help, so I need to return the Font sizes back to the original. As I have to do this each time that I access the computer from a different place, I was wondering if it is possible to create a script that would change the Fonts to the preferred setting, and that way I just need to open the command line, run the appropriate script (ex: FontSize4Office.sh vs FontSize4Home.sh) and continue with my work.


Is it possible? Is there another solution? Am I overly complicating something that should be easy to do another way?


Thank you.


More From » command-line

 Answers
1

You can script this with dconf. I don't know which font you want to change, but here is an example:


dconf write "/org/mate/desktop/interface/font-name" "'Ubuntu Light 10'"

Easiest is to use dconf-editor to find the settings you need.


[#512] Tuesday, August 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scrubuz

Total Points: 194
Total Questions: 96
Total Answers: 127

Location: Monaco
Member since Fri, Sep 24, 2021
3 Years ago
scrubuz questions
Thu, May 4, 23, 13:12, 1 Year ago
Sun, Sep 19, 21, 00:02, 3 Years ago
Wed, Oct 20, 21, 03:46, 3 Years ago
Wed, Jul 7, 21, 08:25, 3 Years ago
;