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

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

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more