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"