0

How do I change the DPI of only one application: "/usr/bin/wps"?
On this page, I found the following script but don't know which part(s) should be replaced with "/usr/bin/wps".

#!/usr/bin/bash                                                 
OLDDPI=$(xrdb -query | awk '/Xft.dpi/ {print $2}')
xrdb -merge <(echo "Xft.dpi: 108")
$* & disown

I don't have to restore it to the default after a number of seconds/minutes.

  • I don't get why you say “I don't have to restore it to the default after a number of seconds/minutes.”? – ctrl-alt-delor Mar 11 at 7:50
  • I want to permanently change the DPI. I don't have to restore the DPI to the default. – Matthew Wai Mar 11 at 7:56
  • Why did you think that we would think otherwise. What am I missing here? – ctrl-alt-delor Mar 11 at 7:58
  • The original script will restore the DPI to the original value after three seconds. – Matthew Wai Mar 11 at 9:03
  • The script there is intended to be provided a command to run as arguments. It also sets the DPI back to the original value after a short while so that it "only" affects the application it launches. If you don't set it back, it will affect every subsequently launched application – Fox Mar 11 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.