An inelegant hack!
Currently, I am using a mix of
xrandr --output HDMI-1 --scale 0.8x0.8
And setting fonts. Mostly, it was taken from Arch Linux's section on HiDPI.
Not elegant at all ☹
A real solution…
Issue 760 suggests that the current master branch of awesome does support custom DPI. And issue 1225 is my attempt at doing things properly.
sudo dnf uninstall awesome # ← This might unisntall dependencies, re-install those!
sudo dnf install -y xorg-x11-server-Xephyr
cd ~/src/awesome # Or where ever the source is.
rm -r .build*
You now need to apply this patch, once that'd done resume:
make CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX:PATH=/usr -DAWESOME_DOC_PATH=/usr/share/doc/awesome -DSYSCONFDIR=/etc " all package
sudo rpm --vv --install build/awesome*rpm
Xephyr :1 &
DISPLAY=:1 awesome -c /etc/xdg/awesome/rc.lua
If the above works, you should be nearly there. If not, use
dnf to install
Nearly done, just some book keeping left.
You old configuration will not longer work, so you need to get the files from the xresources theme as well as the default
rc.lua file. I would strongly recommend you take a backup of the old configuration, but really what could go wrong⸮
~/.Xresources could look like this:
Make sure you disable
awesome from being updated via
dnf by adding
Finally, log out (reboot, whatever) and log back in: you should now be ready.