hidpi sddm. finally

This commit is contained in:
Reid 2024-11-25 17:55:47 -08:00
parent 9d87ae5a49
commit 430ae634f4
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
3 changed files with 7 additions and 1 deletions

View file

@ -39,7 +39,9 @@ in {
# various evironment variables that are needed for everything desktop related # various evironment variables that are needed for everything desktop related
environment.sessionVariables = { environment.sessionVariables = {
MOZ_DISABLE_RDD_SANDBOX = "1"; # automatic hidpi for qt apps
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
QT_ENABLE_HIGHDPI_SCALING = "1";
}; };
} }
(mkIf (cfg.envProto == "wayland") { (mkIf (cfg.envProto == "wayland") {

View file

@ -16,9 +16,12 @@ in {
libsForQt5.qt5.qtgraphicaleffects libsForQt5.qt5.qtgraphicaleffects
libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtquickcontrols2
]; ];
# why do we need kwin for working hidpi
# huh????
services.displayManager.sddm = { services.displayManager.sddm = {
enable = true; enable = true;
wayland.enable = config.modules.desktop.envProto == "wayland"; wayland.enable = config.modules.desktop.envProto == "wayland";
wayland.compositor = "kwin";
theme = config.modules.desktop.themes.sddmTheme.name; theme = config.modules.desktop.themes.sddmTheme.name;
settings = { settings = {
Theme = { Theme = {

View file

@ -47,6 +47,7 @@ in {
package = (pkgs.my.catppuccin-sddm-corners.override { package = (pkgs.my.catppuccin-sddm-corners.override {
config.General = { config.General = {
Background = ../../../../assets/lockscreen.png; Background = ../../../../assets/lockscreen.png;
GeneralFontSize = toString config.modules.desktop.fonts.fonts.sansSerif.size;
Font = config.modules.desktop.fonts.fonts.sansSerif.family; Font = config.modules.desktop.fonts.fonts.sansSerif.family;
}; };
}); });