5

I want to set the dpi scaling in xfce4-settings:appearance via bash script, so that I can bind it to a key shortcut. In the official docs I can only find the method to change it via GUI. Is there a terminal command to set the dpi value?

Thanks for help! Basti

1 Answer 1

5

I think it's what you look for

xfconf-query -c xsettings -p /Xft/DPI -s 100 

You can take a look at man xfconf-query

4
  • That's exactly what I was looking for. Thank you!! Commented Jun 17, 2018 at 12:09
  • @SebastianHoelzl You are welcome. I recommend forum.xfce.org/index.php for questions specific to xfce. Commented Jun 17, 2018 at 12:16
  • 1
    If the property doesn't already exist, xfconf-query -c xsettings -n -t int -p "/Xft/DPI" -s 96 will create it. Commented Nov 10, 2021 at 2:24
  • Worked for me using Debian 12 with XFCE. Thank you. Commented May 13 at 12:11

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.