From 856620a387a68be657f6ee2b3dfec028670e4c8c Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Thu, 23 Jan 2025 15:09:41 -0500
Subject: [PATCH] proper hyprland tracing

---
 nix/programs/hypr/hyprland.nix | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/nix/programs/hypr/hyprland.nix b/nix/programs/hypr/hyprland.nix
index 4889673..1b98d9e 100644
--- a/nix/programs/hypr/hyprland.nix
+++ b/nix/programs/hypr/hyprland.nix
@@ -7,11 +7,16 @@ let
   hyprland-plugins = inputs.hyprland-plugins.packages.${system};
   hy3 = inputs.hy3.packages.${system};
 
+  debug = true;
+
 in
 
 {
   environment = {
     variables = {
+      HYPRLAND_TRACE = if debug then "1" else "0";
+      AQ_TRACE = if debug then "1" else "0";
+
       XDG_CURRENT_DESKTOP = "Hyprland";
       XDG_SESSION_TYPE = "wayland";
       XDG_SESSION_DESKTOP = "Hyprland";
@@ -43,7 +48,7 @@ in
     ];
   };
 
-  programs.xwayland.enable = true;
+  #programs.xwayland.enable = true;
 
   home-manager.users.${config.user} = {
     wayland.windowManager.hyprland = {
@@ -64,9 +69,9 @@ in
       settings = {
 
         # Debug
-        debug.disable_logs = false;
-        debug.disable_time = false;
-        debug.enable_stdout_logs = true;
+        debug.disable_logs = ! debug;
+        debug.disable_time = ! debug;
+        debug.enable_stdout_logs = debug;
 
         # Monitors
         monitor = map (monitor: