Skip to content

Instantly share code, notes, and snippets.

@ha7ilm
Last active September 6, 2021 07:59
Show Gist options
  • Save ha7ilm/fc1a9d0b0a5ffa6f79d7025a39f17849 to your computer and use it in GitHub Desktop.
Save ha7ilm/fc1a9d0b0a5ffa6f79d7025a39f17849 to your computer and use it in GitHub Desktop.
change Xft.dpi on the fly

This is normally in .Xresources:

$ cat .Xresources 
Xft.dpi: 130

To change it on the fly:

echo "Xft.dpi: 130" | xrdb -override -

Now restart some applications to see the effect. Some will change, some will not. For example, if you restart i3 (normally you do that with $mod+Shift+r) then you should see that the window titlebars have changed the size. For gnome-terminal however you're better off changing the font size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment