This short document describes how to change the HiDPI setting so that everything works fine. The following sections describe how to make certain components use the desired DPI. The rest of components (dunst, kitty, etc.) should automatically pick up the new DPI defined by xrandr
and .Xresources
.
Symlink ~/.local/bin/current-randr.sh
to either ~/.dotfiles/bin/hidalgo-randr-hidpi.sh
or ~/.dotfiles/hidalgo-randr-fhd.sh
.
Symlink ~/.Xresources
to either ~/.dotfiles/X/.Xresources-hidpi
or ~/.dotfiles/X/.Xresources
.
Look up the file ~/.dotfiles/polybar/launch.sh
and change the code within the "if" block pertaining to "hidalgo". You can choose the bars bar-hidpi
and bar-hidpi-slave
for HiDPI setups, and bar-fhd
and bar-fhd-slave
for 1080p setups.
Symlink ~/.Xdefaults
to either ~/.dotfiles/X/.Xdefaults-hidpi
or ~/.dotfiles/X/.Xdefaults
.
Go to about:config
and set layout.css.devPixelsPerPx
to whatever value (1.8
, 2.0
, etc).
In Thunderbird, it is also recommended to increase the font size.
- Set the VM property
-Dsun.java2d.uiScale=2
- Set the gnome setting
$ gsettings set org.gnome.desktop.interface scaling-factor 2