From 7bc9431a03a123133a898d8aa007d1123f6f2a23 Mon Sep 17 00:00:00 2001
From: Adam <24621027+WhiteDopeOnPunk@users.noreply.github.com>
Date: Mon, 1 Jan 2024 06:59:44 -0500
Subject: [PATCH] fix bg/colors update race

---
 configs/awesome/binds/awesome.lua | 8 ++++++--
 readme.md                         | 1 -
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/configs/awesome/binds/awesome.lua b/configs/awesome/binds/awesome.lua
index 6993584..83cb3ca 100644
--- a/configs/awesome/binds/awesome.lua
+++ b/configs/awesome/binds/awesome.lua
@@ -13,8 +13,12 @@ globalkeys = Gears.table.join(
 
     Awful.key(
         { Modkey, "Shift" }, "p",
-        function() Awful.spawn("doorsbg") end,
-        awesome.restart,
+        function()
+            Awful.spawn.easy_async_with_shell("doorsbg",
+                function()
+                    awesome.restart()
+                end)
+        end,
         {
             description = "set new random wallpaper/color scheme",
             group = "awesome"
diff --git a/readme.md b/readme.md
index f749c5d..d6f5f3e 100644
--- a/readme.md
+++ b/readme.md
@@ -76,7 +76,6 @@ just run `startx` or start awesome from your display manager if you have one.
 servers to update treesitter
 
 ## Known issues (aka things to fix and excuses why they aren't):
-- Awesomewm reload races the bg/color script and may not update. Just reload awesome again manually for now
 - Installer can hang at "retrieving packages" - I think this is a pacman/mirror issue. Just kill and restart it, 
 it'll pick up where it left off
 - lsp-zero (nvim plugin) changed some things and needs to be reconfigured