From c1203f24757f9f998272dc2804d27c17cd8a4826 Mon Sep 17 00:00:00 2001 From: Bad Date: Fri, 7 May 2021 12:06:29 +0200 Subject: [PATCH] Fix a bunch of stuff --- users/profiles/sway/desktop.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/users/profiles/sway/desktop.nix b/users/profiles/sway/desktop.nix index f5f4fd8..9459318 100644 --- a/users/profiles/sway/desktop.nix +++ b/users/profiles/sway/desktop.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { wayland.windowManager.sway = { - package = null; enable = true; config = { modifier = "Mod4"; @@ -21,6 +20,15 @@ }; wrapperFeatures.gtk = true; systemdIntegration = true; + extraSessionCommands = '' + export SDL_VIDEODRIVER=wayland + # needs qt5.qtwayland in systemPackages + export QT_QPA_PLATFORM=wayland + export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + # Fix for some Java AWT applications (e.g. Android Studio), + # use this if they aren't displayed properly: + export _JAVA_AWT_WM_NONREPARENTING=1 + ''; }; programs.i3status-rust = {