From 71cd3aff8f3a2e7e55de208d842eb39ad76c52b9 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Mon, 3 Nov 2025 23:17:49 +0100 Subject: [PATCH] add pdf and image viewer --- hosts/nixos/thinkpad/home.nix | 2 ++ modules/hyprland/home.nix | 31 ++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/thinkpad/home.nix b/hosts/nixos/thinkpad/home.nix index b598a31..a6ba383 100644 --- a/hosts/nixos/thinkpad/home.nix +++ b/hosts/nixos/thinkpad/home.nix @@ -55,5 +55,7 @@ ''; }) remmina + evince + loupe ]; } diff --git a/modules/hyprland/home.nix b/modules/hyprland/home.nix index 83a40b9..a53d56d 100644 --- a/modules/hyprland/home.nix +++ b/modules/hyprland/home.nix @@ -87,11 +87,13 @@ # Monitor configuration monitor = ",preferred,auto,1"; - # Environment variables for input methods + # Environment variables for input methods and theming env = [ "GTK_IM_MODULE,fcitx" "QT_IM_MODULE,fcitx" "XMODIFIERS,@im=fcitx" + "GTK_THEME,Adwaita:dark" + "QT_QPA_PLATFORMTHEME,qt5ct" ]; # Execute apps at launch @@ -344,8 +346,35 @@ name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; + gtk3.extraConfig = { + gtk-application-prefer-dark-theme = 1; + }; + gtk4.extraConfig = { + gtk-application-prefer-dark-theme = 1; + }; }; + # Qt theme settings for consistent theming with GTK + qt = { + enable = true; + platformTheme.name = "adwaita"; + style.name = "adwaita-dark"; + }; + + # dconf settings for GNOME apps to prefer dark theme + dconf.settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + gtk-theme = "Adwaita-dark"; + }; + }; + + # Qt theming packages + home.packages = with pkgs; [ + adwaita-qt + adwaita-qt6 + ]; + # Wofi application launcher configuration programs.wofi = { enable = true;