mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-16 19:08:25 +01:00
bspwm: Add HiDPI support for GTK applications
It turns out that GDK_SCALE and GDK_DPI_SCALE is what you need to add HiDPI support to GTK applications. Since you probably have .Xresources adjusted for your HiDPI display, you will need to set both GDK_SCALE and GDK_DPI_SCALE at the same time to render things properly. Ironically, I never got this to work before. Maybe because I was always using 'GTK_SCALE' instead of 'GDK_SCALE', or maybe because I never used both GDK_SCALE and GDK_DPI_SCALE at the same time. This gives me full HiDPI support in bspwm, with the exception of a few applications (polybar, dunst) that don't honor DPI as of this writing.
This commit is contained in:
parent
0e0fe82b03
commit
5679c7092c
@ -8,6 +8,9 @@ export QT_AUTO_SCREEN_SCALE_FACTOR="0"
|
||||
export QT_FONT_DPI="192"
|
||||
export QT_SCREEN_SCALE_FACTORS="VGA-1=2;"
|
||||
|
||||
export GDK_SCALE="2"
|
||||
export GDK_DPI_SCALE="0.5"
|
||||
|
||||
export XCURSOR_THEME="breeze_cursors"
|
||||
export XDG_DATA_DIRS="/usr/share:/usr/share:/usr/local/share"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user