Skip to content

Instantly share code, notes, and snippets.

@natanaeljr
Last active October 8, 2024 21:39
Show Gist options
  • Save natanaeljr/f7431727b455cccf59eac79220e5f32f to your computer and use it in GitHub Desktop.
Save natanaeljr/f7431727b455cccf59eac79220e5f32f to your computer and use it in GitHub Desktop.
Configure multi-monitor setup with HiDPI and non-HiDPI in linux
# References:
https://wiki.archlinux.org/title/HiDPI
# Setup monitors
xrandr --output DP-0 --mode 3840x2160 --output HDMI-0 --mode 1920x1080 --pos 3840x0 --filter bilinear --scale-from 3840x2160
# Add to ~/.Xresources
Xft.dpi: 152
# Add to ~/.config/shell/profile
export GDK_SCALE=2
export WINIT_X11_SCALE_FACTOR=1.5 # manual scaling for alacritty
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_ENABLE_HIGHDPI_SCALING=1
# Add to ~/.config/chrome-flags.conf
--force-device-scale-factor=1.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment