My screen resolution is 2560x1440 and I am using fractional scaling at 125%.
Steam fonts are unreadable (see the screenshot and compare with the size of the Chrome icon).
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityMy screen resolution is 2560x1440 and I am using fractional scaling at 125%.
Steam fonts are unreadable (see the screenshot and compare with the size of the Chrome icon).
If you want to start steam
with scaled UI from launchpad, you can set GDK_SCALE=2
(as mentioned in the accepted solution) in steam.desktop
file (in my case it is located in /usr/share/applications
).
First, open the file in your favourite text editor (e.g. gedit
). You might need superuser privileges:
gedit /usr/share/applications/steam.desktop
Then change the Exec
entry value to:
Exec=sh -c 'GDK_SCALE=2 /usr/games/steam %U'
Note: your steam
path can be different to mine (/usr/games/steam
). Just use the path from your Exec
entry.
Exec=env GDK_SCALE=2 /usr/games/steam U%
. No need for nesting in a shell then.
Find the bin_steam.sh
:
$ which steam
// >> /usr/bin/steam
$ ls -la /usr/bin/steam
// >> lrwxrwxrwx 1 root root 25 Jul 29 2020 /usr/bin/steam -> ../lib/steam/bin_steam.sh
$ ls -la /usr/lib/steam/bin_steam.sh
// >> -rwxr-xr-x 1 root root 5946 Jun 21 14:26 /usr/lib/steam/bin_steam.sh
Edit bin_steam.sh
:
$ sudo gedit /usr/lib/steam/bin_steam.sh
Add at the beginning export GDK_SCALE=2
:
Run Steam as usual and see the changes ;)
~/.bashrc
for example.
If you start Steam from a terminal with the command GDK_SCALE=2 steam
it seems to work.
I found the answer on a Manjaro help page.
For anyone stumbling into this in the future.
If you find the default UI too small and GDK_SCALE=2
too big, you can apply a zoom to the steam UI instead for 150%, 125% etc.
Here's how for Ubuntu based distros for example:
(make sure your directories are the same)
mkdir -p ~/.steam/steam/skins/steamzoom/resource/styles
cp ~/.steam/steam/resource/styles/steam.styles ~/.steam/steam/skins/steamzoom/resource/styles/steam.styles
echo ":root { zoom: 1.5; }" > ~/.steam/steam/skins/steamzoom/resource/webkit.css
You can later apply the last command again to change the zoom size to your preference.
I personally use 1.25 (125%).
Afterwards go to your Steam Settings -> Interface -> select the new "steamzoom" skin you just created and apply it.
This can also be applied to existing steam skins, for example Adwaita skin you'd only need to
echo ":root { zoom: 1.25; }" > ~/.steam/steam/skins/Adwaita/resource/webkit.css
I had the same issue with Steam and Spotify. Changed the fractional scaling back to 100% from 125% and the fonts went back to being readable.
Start steam client adding parameters -w 1368 -h 768
or whatever size you want, always smaller than your monitor resolution. The smaller value, the bigger overall size of steam client, including fonts.
You may add parameters to your Windows shortcut, it works in Linux shortcuts too.