Port to 20.03

This commit is contained in:
Tim Schubert 2020-04-27 21:43:16 +02:00
parent c50075d220
commit c81070da92
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
9 changed files with 96 additions and 34 deletions

30
sway/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, pkgs, lib, ...}:
{
home.packages = with pkgs; [
qt5.qtwayland
swaylock
swayidle
xwayland
mako
kanshi
i3blocks
termite
bemenu
xss-lock
];
wayland.windowManager.sway = {
enable = true;
config = null;
extraConfig = (builtins.readFile ./config);
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
'';
};
}