Okay, let's break down how to make LibreWolf smaller, considering your current settings. Your settings suggest you're aiming for higher-than-default scaling (150 DPI makes things bigger than standard 96 DPI, and QT_SCALE_FACTOR=1.25 also increases size). To make LibreWolf smaller, you need to do the opposite.
Here are a few approaches, choose the one that best suits your needs:
1. Reduce the Xft.dpi Value (Affects most Xft apps)
- What it does: Your
Xft.dpi: 150 setting tells applications using the Xft font library that your screen has a high pixel density, causing them to render text and UI elements larger. Lowering this value will make those elements appear smaller globally across many applications (including GTK apps like LibreWolf).
- How to change:
- Edit your
.Xresources file:
nano ~/.Xresources
- Find the line
Xft.dpi: 150 and change 150 to a lower value. Common defaults are 96 or 120. Try 120 first for a moderate reduction.
Xft.dpi: 120
- Save the file (Ctrl+O in nano, then Enter) and exit (Ctrl+X).
- Apply the changes by running:
xrdb -merge ~/.Xresources
- Restart LibreWolf. For some applications, you might need to log out and log back in for the DPI change to be fully recognized.
2. Adjust GTK Scaling (Often the most effective for LibreWolf)
- What it does: LibreWolf, being based on Firefox, primarily uses the GTK toolkit. GTK applications often respect the
GDK_SCALE environment variable for scaling UI elements. Setting this to a value less than 1.0 will make GTK apps smaller. This is often preferred over changing Xft.dpi if you only want to affect GTK apps.
- How to change:
- Determine where your current
QT_SCALE_FACTOR is being exported. It's likely in your shell's configuration file like ~/.profile, ~/.bash_profile, ~/.zshenv, or sometimes ~/.xprofile.
- Edit that file (e.g.,
nano ~/.profile).
- Add or modify the
GDK_SCALE variable. Try 0.8 or 0.75 to start.
# Example addition to ~/.profile
export GDK_SCALE=0.8
# You might also want to ensure GTK doesn't override this based on Xft.dpi explicitly
# export GDK_SCALE_USE_SYSTEM_METRICS=0 # Usually not needed, but sometimes helps
- Save and close the file.
- Restart LibreWolf. You might need to log out and log back in for this environment variable to be picked up reliably by all applications.
3. Adjust Qt Scaling (Less Likely to Affect LibreWolf, but affects Qt Apps)
- What it does: Your
QT_SCALE_FACTOR=1.25 makes Qt applications larger. If LibreWolf somehow uses Qt components (unlikely, but possible), or if you want other Qt apps smaller, you can adjust this. You might also want to disable the automatic scaling detection.
- How to change:
- Find the file where you set
export QT_AUTO_SCREEN_SCALE_FACTOR=1 and export QT_SCALE_FACTOR=1.25 (likely ~/.profile, ~/.bash_profile, etc.).
- Edit the file.
- Change
QT_SCALE_FACTOR to 1.0 (default) or even lower, like 0.8.
- Optionally, disable automatic scaling detection by changing
QT_AUTO_SCREEN_SCALE_FACTOR to 0.
# Example modification
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=1.0
- Save the file.
- Restart LibreWolf. Log out/in might be necessary.
4. Use LibreWolf's Internal Zoom
- What it does: This only affects the content displayed within LibreWolf (web pages), not the browser's UI elements like tabs, address bar, menus, etc.
- How to change:
- Press
Ctrl + - (minus key) inside LibreWolf to decrease the zoom level.
- Press
Ctrl + 0 to reset zoom to default (100%).
- Alternatively, go to LibreWolf Menu -> Settings -> Appearance -> Zoom section and set a default zoom level below 100%.
Recommendation:
- Try Method 2 (
GDK_SCALE) first, as it's the most targeted approach for GTK-based applications like LibreWolf. Set export GDK_SCALE=0.8 (or similar) in your ~/.profile.
- If that doesn't work or has side effects, try Method 1 (reducing
Xft.dpi). This is a broader change but directly relates to the setting you have in .Xresources.
- Adjust Method 3 (
QT_SCALE_FACTOR) if you have other Qt applications that also need resizing.
- Use Method 4 (Internal Zoom) if you only want to change the size of web content.
Remember to restart LibreWolf (or log out/in) after making changes to .profile or .Xresources.