mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
* fix(desktop): align Qt app fonts with GTK
Qt apps kept their built-in default font ("Sans Serif" 9) while GTK apps use
`gtk-font-name` (Noto Sans 11), so Telegram and other Qt apps rendered
noticeably smaller than GTK apps like Firefox. Set
QT_QPA_PLATFORMTHEME=gtk3; the plugin ships with qtbase, so it needs no
extra package and also gives Qt apps GTK file dialogs.
* chore(desktop): drop unused Xft.dpi from the Wayland GTK profile
Xft.dpi/ *.dpi are X11 X-resource settings. This file is only imported by
the niri (Wayland) hosts, where xwayland-satellite sets its own Xft.dpi
(96 x output scale, currently 144), and the i3 hosts are headless 1080p
computer-use sessions that do not import it. So the setting had no effect
anywhere; remove it instead of keeping a misleading knob.
36 lines
796 B
Nix
36 lines
796 B
Nix
{
|
||
pkgs,
|
||
config,
|
||
...
|
||
}:
|
||
{
|
||
# If your themes for mouse cursor, icons or windows don’t load correctly,
|
||
# try setting them with home.pointerCursor and gtk.theme,
|
||
# which enable a bunch of compatibility options that should make the themes load in all situations.
|
||
|
||
home.pointerCursor = {
|
||
enable = true;
|
||
gtk.enable = true;
|
||
x11.enable = true;
|
||
package = pkgs.bibata-cursors;
|
||
name = "Bibata-Modern-Ice";
|
||
size = 24;
|
||
};
|
||
|
||
# gtk's theme settings, generate files:
|
||
# 1. ~/.gtkrc-2.0
|
||
# 2. ~/.config/gtk-3.0/settings.ini
|
||
# 3. ~/.config/gtk-4.0/settings.ini
|
||
gtk = {
|
||
enable = true;
|
||
|
||
font = {
|
||
name = "Noto Sans";
|
||
package = pkgs.noto-fonts;
|
||
size = 11;
|
||
};
|
||
|
||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||
};
|
||
}
|