Skip to content

Dwm + Hidpi troubles

Hidpi is such a headache. Just installed dwm and set the xft.dpi in ~/.Xresources to 254 (Im using a 3200x1800 13.3in laptop). Programs like firefox/discord look huge though but terminal and main ui elements look fine.

The arch wiki even says: ! Setting Xft.dpi at the same time as toolkit scale (e.g. GDK_SCALE) may cause interface elements to be much larger than intended in some programs like firefox

How can i fix this. I did exactly what the arch wiki has told me so far (by executing .Xresources in .xinitrc). Asked the unofficial gentoo server, unixporn server, and discord linux and they were all no help. Struggling to find any documentation besides that one sentence in the arch hidpi wiki. I'm so close i know it. Reddit is my last ditch effort. plz its 3am im going insane.

X86, fresh-ish arch install, lenovo yoga 2 pro

3 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
jdbst7

Author

3
posts
0
comments
1
media
View profile

2 comments

I personally set firefox in about:config, I have the key layout.css.devPixelsPerPx set to 2.

2 points
unknown author

I only set xft.dpi in .Xresources, nothing else and everything is perfect - terminal, Firefox, other gtk apps. Never needed to set any GDK_* variables. Not sure if my 27" 4K monitor counts as hidpi though (163dpi).

Any chances there are some leftovers from previously installed DM (Gnome, etc)?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.