DEV Community

eb1ta1
eb1ta1

Posted on • Originally published at eb1ta1.github.io

Best settings for using i3 window manager with HiDPI displays.

Step 1. Add Xft.dpi to ~/.Xresources

# touch ~/.Xresources
vim ~/.Xresources
Enter fullscreen mode Exit fullscreen mode

Add the following:

Xft.dpi: 144
Enter fullscreen mode Exit fullscreen mode

Step 2. Use xlayoutdisplay to set a custom DPI value

alex-courtis/xlayoutdisplay - GitHub

# install xlayoutdisplay
xlayoutdisplay -p HDMI-0 -d 144
Enter fullscreen mode Exit fullscreen mode

Then, copy and run the command like

xrandr \
 --dpi 144 \
 --output DVI-D-0 --off \
 --output HDMI-0 --mode 3840x2160 --rate 60 --pos 0x0 --primary \
 --output HDMI-1 --off \
 --output DP-0 --off \
 --output DP-1 --off \
 --output DP-2 --off \
 --output DP-3 --off \
 --output DP-1-3 --off \
 --output HDMI-1-3 --off \
 --output HDMI-1-4 --off \
 --output HDMI-1-5 --off \
 --output DP-1-4 --off

echo "Xft.dpi: 144" | xrdb -merge
Enter fullscreen mode Exit fullscreen mode

Step 3. Change the rofi's DPI value

vim ~/.config/i3/config
Enter fullscreen mode Exit fullscreen mode
- bindsym $mod+d exec --no-startup-id "rofi"
+ bindsym $mod+d exec --no-startup-id "rofi -dpi 144"
Enter fullscreen mode Exit fullscreen mode

EOF

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay