Xubuntu / lightdm-gtk-greeter

A GTK greeter for LightDM
GNU General Public License v3.0
140 stars 30 forks source link

Scaling greeter for HiDPI displays #79

Open kvnsmth opened 3 years ago

kvnsmth commented 3 years ago

I have a HiDPI display, so the out of the box experience with the greeter is tiny text (I'm on Arch, if that matters). To solve this I used greeter-wrapper to run a small script to set GDK_SCALE=2.

/etc/lightdm/lightdm.conf:

...
greeter-wrapper=/etc/lightdm/Xgsession
...

Here is /etc/lightdm/Xgsession:

#!/bin/sh
# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 4 -*-
#
# Wrapper to run around LightDM Greeter X sessions.

# hidpi
export GDK_SCALE=2

# run greeter
exec $@

This works (yay!) but I'm wondering if there is a better way. Thanks!

ESPWarren commented 2 years ago

@kvnsmth

Thank you so much for posting this. I too have a hidpi display. Your soutions also works perfectly for me.

Did you find 'a better way'?

Also does this change to the lightdm config persist after system updates?

Thanks again

kvnsmth commented 1 year ago

@ESPWarren I'm happy it works for you. Unfortunately, I stopped using this project so never found a different way. The config persistence depends on the system that you are using for updates. I use Arch and did not have any issue (it will create pacnew file if a config has been modified). Good luck!