Fix a bunch of stuff

This commit is contained in:
Bad 2021-05-07 12:06:29 +02:00
parent c264254e74
commit c1203f2475

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
package = null;
enable = true; enable = true;
config = { config = {
modifier = "Mod4"; modifier = "Mod4";
@ -21,6 +20,15 @@
}; };
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
systemdIntegration = 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 = { programs.i3status-rust = {