From 9cdf52390f3663008ca0b6040ae3169a4dd2cbaa Mon Sep 17 00:00:00 2001 From: SaintRyoh <14931827+SaintRyoh@users.noreply.github.com> Date: Wed, 9 Aug 2023 18:20:01 -0500 Subject: [PATCH] Only enable debugger in Xephyr --- rc.lua | 2 +- shell.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index 85bf5ddd..4d0ee7b0 100644 --- a/rc.lua +++ b/rc.lua @@ -3,7 +3,7 @@ require("error-handling") -- if AWM_DEBUG set in environment then require debug Debugger = nil -if os.getenv("AWM_DEBUG") == '1' or true then +if os.getenv("AWM_DEBUG") == '1' then Debugger = require("awm-debug") end diff --git a/shell.nix b/shell.nix index 79415408..269cd3c7 100644 --- a/shell.nix +++ b/shell.nix @@ -22,6 +22,7 @@ in shellHook = '' BASE_DIRECTORY=$(pwd) + AWM_DEBUG=1 if [[ -f ./scripts/hook.sh ]]; then source ./scripts/hook.sh fi