From 3197528e86f4fb7c0edbb1d562eec9d038cbd497 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sat, 6 Aug 2022 14:41:23 +0200 Subject: [PATCH] fix qt stuff --- modules/graphical.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/graphical.nix b/modules/graphical.nix index 8323721..64cd881 100644 --- a/modules/graphical.nix +++ b/modules/graphical.nix @@ -20,6 +20,7 @@ xdg-utils nextcloud-client foot + qt5.qtwayland ]; #on the desktop, we need nice fonts ^^ @@ -96,6 +97,13 @@ programs.sway = { enable = true; wrapperFeatures.gtk = true; + extraSessionCommands = '' + export SDL_VIDEODRIVER=wayland + export QT_QPA_PLATFORM=wayland-egl + export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + export QT_QPA_PLATFORMTHEME="gnome" + export QT_STYLE_OVERRIDE="adwaita-dark" + ''; extraPackages = with pkgs; [ pamixer swaylock @@ -103,8 +111,7 @@ wl-clipboard mako foot - wofi - wofi-emoji + rofi-wayland grim slurp waybar