{ config, pkgs, lib, ... }: { programs.sway = { enable = true; wrapperFeatures.gtk = true; extraSessionCommands = '' # -- Wayland fixes # SDL: export SDL_VIDEODRIVER=wayland # QT (needs qt5.qtwayland in systemPackages): export QT_QPA_PLATFORM=wayland-egl 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 cp ${../../../../modules/users/Rory/wallpaper.webp} ~/.cache/wallpaper.webp ''; #( #sleep 5 #${pkgs.swaybg}/bin/swaybg -i ${../../../../modules/users/Rory/wallpaper.webp} #$ {pkgs.swayidle}/bin/swayidle -w timeout 300 'swaylock -f -i ${../../../../modules/users/Rory/wallpaper.webp}' 'swaymsg "output * dpms off"' #$ {pkgs.swaylock}/bin/swaylock -f -i ${../../../../modules/users/Rory/wallpaper.webp} #${pkgs.waybar}/bin/waybar #) & extraPackages = with pkgs; [ swaybg #swayidle #swaylock waybar wl-clipboard grim slurp easyeffects keepassxc ]; }; }