From d3eb9e25c3ea0491c2ffd87e69120221be9d6306 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Tue, 9 Nov 2021 20:16:22 +0100 Subject: [PATCH] sway: Make QT applications dark --- modules/programs/sway/default.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/modules/programs/sway/default.nix b/modules/programs/sway/default.nix index 58b2e40..cf3c3a5 100644 --- a/modules/programs/sway/default.nix +++ b/modules/programs/sway/default.nix @@ -45,15 +45,20 @@ in { ]; }; - environment.sessionVariables = { - # sway - #"_JAVA_AWT_NONREPARENTING" = 1; + qt5.style = "adwaita-dark"; + + environment = { + systemPackages = with pkgs; [ adwaita-qt ]; + sessionVariables = { + # sway + #"_JAVA_AWT_NONREPARENTING" = 1; - # Wayland - "QT_QPA_PLATFORM" = "wayland-egl"; - "ECORE_EVAS_ENGINE" = "wayland-egl"; - "ELM_ENGINE" = "wayland-egl"; - "SDL_VIDEODRIVER" = "wayland"; + # Wayland + "QT_QPA_PLATFORM" = "wayland-egl"; + "ECORE_EVAS_ENGINE" = "wayland-egl"; + "ELM_ENGINE" = "wayland-egl"; + "SDL_VIDEODRIVER" = "wayland"; + }; }; programs.sway.enable = true;