change default font size in the command line
Posted: Wed Jul 08, 2015 4:53 pm
Hi all,
I would like to know how to change and immediately update the "default font" size in LXDE via the command line.
I know this can be performed manually with the lxappearance gui, but I would prefer a command line option. I have two monitors of two vary different sizes that I switch to periodically. xrandr can obviously switch between the two, but I also want to change the font with the switch.
I'm currently using Debian testing, but in the past I was using Ubuntu 12.04. I had a solution for my old Ubuntu OS, but it doesn't work for the new Debian.
It's a bit crude, but it worked before. Unfortunately now, running lxsession with any options causes it to crash back to the login screen. So I suspect it's a problem with an updated lxsession (or it was never meant to do this in the first place).
Thanks.
I would like to know how to change and immediately update the "default font" size in LXDE via the command line.
I know this can be performed manually with the lxappearance gui, but I would prefer a command line option. I have two monitors of two vary different sizes that I switch to periodically. xrandr can obviously switch between the two, but I also want to change the font with the switch.
I'm currently using Debian testing, but in the past I was using Ubuntu 12.04. I had a solution for my old Ubuntu OS, but it doesn't work for the new Debian.
Code: Select all
xrandr --output DFP5 --auto --output DFP6 --off &&
sed -i 's/FontName=Ubuntu 11/FontName=Ubuntu 17/g' ~/.config/lxsession/Lubuntu/desktop.conf &&
lxsession -r
Thanks.