Custom scale in SDDM’s Sweet Theme Gets Overwritten After Update

I’m using the Hyprland environment, and in my hyprland.conf, I have the following line:

monitor=eDP-1, 3840x2400@60.00000, 0x0, 2.40

This works fine once I’m logged in, but it doesn’t affect the login screen. To fix that, I manually edited /usr/share/sddm/themes/Sweet/login.qml and added scale: 2.4 to the SessionManagementScreen, which makes the display look perfect at the login screen.

The issue is that every time the Sweet theme gets updated, the file is overwritten, and I have to reapply my changes manually. Is there a way to make this change permanent so I don’t have to keep modifying the file after each update?

sudo chattr +i /usr/share/sddm/themes/Sweet/login.qml

adds the immutable attribute.
Of course you can then check every now and then if an important update of that file is released, so that you can either enter it manually or temporarily remove the attribute with -i.

4 Likes