From 63500cd8cc996c2fe2261cb23cbeff58c14feb63 Mon Sep 17 00:00:00 2001
From: Nathan Anderson <n8r@tuta.io>
Date: Mon, 30 Dec 2024 20:54:07 -0700
Subject: [PATCH] made the project picker just even better

---
 nate/dotfiles/sway/scripts/open_project.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/nate/dotfiles/sway/scripts/open_project.sh b/nate/dotfiles/sway/scripts/open_project.sh
index 571ac2e..0b53f88 100755
--- a/nate/dotfiles/sway/scripts/open_project.sh
+++ b/nate/dotfiles/sway/scripts/open_project.sh
@@ -12,7 +12,7 @@ if [[ $(basename "$FULL_DIR") == $(basename "$SRC_BASE") ]]; then
 fi
 
 foot --working-directory="$FULL_DIR" >/dev/null 2>&1 &
-sleep 0.2
+sleep 0.15
 
 FFLINKS_FILE="$FULL_DIR/.fflinks"
 
@@ -21,13 +21,12 @@ if [[ -f "$FFLINKS_FILE" ]]; then
   swaymsg "splitv"
   URLS=$(awk '{ printf "\"%s\" ", $0 }' $FFLINKS_FILE)
   echo "$URLS" | xargs firefox &
-  sleep 0.2
+  sleep 0.15
   # firefox $URLS
 fi
 
 swaymsg "focus parent; splith"
-foot --working-directory="$FULL_DIR" >/dev/null 2>&1 &
+foot --working-directory="$FULL_DIR" hx >/dev/null 2>&1 &
+sleep 0.15
 
-# Convert the ~ to the full path
-
-# Open two foot terminals in the specified directory
+swaymsg "focus left; focus parent; resize shrink width 400px; focus right"