Jelajahi Sumber

try fix graphical tears, fix spotify floating

Johan Rong 3 bulan lalu
induk
melakukan
fee7d2ad5c

+ 3 - 1
home/features/desktop/sway/sway.nix

@@ -188,7 +188,7 @@ in
       };
 
       window.commands = [
-        { command = "floating enable"; criteria.instance = "spotify"; }
+        { command = "floating enable"; criteria.app_id = "spotify"; }
         #{ command = "floating enable"; criteria.class = "steam"; }
       ];
 
@@ -227,6 +227,8 @@ in
       output DP-2 pos 0 0 mode 1920x1080@143.981Hz
       output HDMI-A-1 mode 1920x1080@143.981Hz
 
+      output * adaptive_sync off
+
       workspace 1 output DP-2
       workspace 2 output DP-2
       workspace 3 output DP-2

+ 1 - 0
nixos/flavors/desktop/sway/default.nix

@@ -47,6 +47,7 @@
     NIXOS_OZONE_WL = "1";
     QT_QPA_PLATFORM = "wayland";
     XDG_CURRENT_DESKTOP = "sway";
+    WLR_NO_HARDWARE_CURSORS = "1";
   };
 
   security.pam.services.swaylock = {};