updates nvim sessions from tmux to wezterm

This commit is contained in:
2024-08-10 15:20:08 -07:00
parent f58ff37b78
commit 3f34effc6b
10 changed files with 63 additions and 48 deletions

19
sessions/lag.sh Executable file
View File

@@ -0,0 +1,19 @@
# firefox https://bigdrumdigital.teamwork.com/app/projects/620980/time &
# firefox https://3.basecamp.com/5456546/buckets/36188668/card_tables/7047790073 &
# mongodb-compass &
tmux new-session -s linkedag -d -c ~/repos/linkedag-backend -n backend
tmux split-window -h -c ~/repos/linkedag-backend
tmux resize-pane -t linkedag:backend.0 -x 90%
tmux send-keys -t linkedag:backend.0 'nvim' C-m
tmux send-keys -t linkedag:backend.1 'npm run dev' C-m
tmux new-window -c ~/repos/linkedag -n frontend
tmux split-window -h -c ~/repos/linkedag
tmux resize-pane -t linkedag:frontend.0 -x 90%
tmux send-keys -t linkedag:frontend.0 'nvim' C-m
tmux send-keys -t linkedag:frontend.1 'npm run dev' C-m
tmux select-window -t linkedag:backend
tmux select-pane -t 0
tmux -2 attach-session -t linkedag

24
sessions/lagweb.sh Executable file
View File

@@ -0,0 +1,24 @@
qdbus org.kde.KWin /KWin setCurrentDesktop 3
sleep 1
google-chrome --profile-directory='Profile 1' "http://localhost:5173/app" &
sleep 1
google-chrome --profile-directory='Profile 2' "http://localhost:5173/app" &
sleep 1
google-chrome --profile-directory='Profile 3' "http://localhost:5173/app" &
sleep 1
qdbus org.kde.KWin /KWin setCurrentDesktop 5 && firefox --new-window "https://bigdrumdigital.teamwork.com/app/projects/620980/time" &
sleep 1
qdbus org.kde.KWin /KWin setCurrentDesktop 5 && firefox --new-window "https://theme-generator-seven.vercel.app/" &
sleep 1
qdbus org.kde.KWin /KWin setCurrentDesktop 2 && firefox --new-window "https://3.basecamp.com/5456546/buckets/36188668/card_tables/7047790073" &
sleep 1
qdbus org.kde.KWin /KWin setCurrentDesktop 4 && mongodb-compass &
sleep 1
qdbus org.kde.KWin /KWin setCurrentDesktop 4 && firefox --new-window "https://www.figma.com/file/PihpwVEFRiq6LC3HHg0RWh/LinkedAG-Design?type=design&node-id=307-1744&mode=design" &
sleep 5
qdbus org.kde.KWin /KWin setCurrentDesktop 3

1
sessions/sync Normal file
View File

@@ -0,0 +1 @@

27
sessions/sync.sh Executable file
View File

@@ -0,0 +1,27 @@
# alias wezterm='flatpak run org.wezfurlong.wezterm'
win=$(flatpak run org.wezfurlong.wezterm cli spawn --new-window)
flatpak run org.wezfurlong.wezterm cli set-window-title --pane-id $win "Syncopotamus"
flatpak run org.wezfurlong.wezterm cli set-tab-title --pane-id $win "Go"
echo "cd ~/repos/syncopotamus-go" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
echo "export SYNCOPOTAMUS_BC_CLIENT_ID='de4602c11dcdacfbe8f1a172f84b4e88b7a1adeb'" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
echo "export SYNCOPOTAMUS_BC_CLIENT_SECRET='710ddd0ec04c098adca8564e4caab2c7034ad272'" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
echo "export SYNCOPOTAMUS_BC_REDIRECT_SERVER='http://localhost'" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
echo "clear" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
echo "go run ." | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $win
pane=$(flatpak run org.wezfurlong.wezterm cli split-pane --left --pane-id $win)
echo "cd ~/repos/syncopotamus-go" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
echo "nvim" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
flatpak run org.wezfurlong.wezterm cli adjust-pane-size --amount 50 --pane-id $pane right
pane=$(flatpak run org.wezfurlong.wezterm cli spawn --pane-id $pane)
flatpak run org.wezfurlong.wezterm cli set-tab-title --pane-id $pane "Svelte"
echo "cd ~/repos/syncopotamus-svelte" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
echo "npm run dev" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
pane=$(flatpak run org.wezfurlong.wezterm cli split-pane --left --pane-id $pane)
echo "cd ~/repos/syncopotamus-svelte" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
echo "nvim" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $pane
flatpak run org.wezfurlong.wezterm cli adjust-pane-size --amount 50 --pane-id $pane right

20
sessions/syncrails.sh Executable file
View File

@@ -0,0 +1,20 @@
# alias wezterm='flatpak run org.wezfurlong.wezterm'
PANE=$(flatpak run org.wezfurlong.wezterm cli list | grep syncopotamus | head -n 1 | awk '{print $3}')
if [ -n "${PANE}" ]; then
PANE=$(flatpak run org.wezfurlong.wezterm cli spawn --pane-id $PANE)
echo "Opening Rails in existing window"
else
PANE=$(flatpak run org.wezfurlong.wezterm cli spawn --new-window)
echo "Opening Rails in new window"
fi
flatpak run org.wezfurlong.wezterm cli set-tab-title --pane-id $PANE "Rails"
echo "cd ~/repos/syncopotamus-rails" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $PANE
echo "rails s" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $PANE
PANE=$(flatpak run org.wezfurlong.wezterm cli split-pane --left --pane-id $PANE)
echo "cd ~/repos/syncopotamus-rails" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $PANE
echo "nvim" | flatpak run org.wezfurlong.wezterm cli send-text --no-paste --pane-id $PANE
flatpak run org.wezfurlong.wezterm cli adjust-pane-size --amount 50 --pane-id $PANE right

2
sessions/syncrailsweb.sh Executable file
View File

@@ -0,0 +1,2 @@
flatpak run org.mozilla.Firefox https://3.basecamp.com/5456546/buckets/34127086/card_tables/6496384013
flatpak run org.mozilla.Firefox --new-window http://localhost:3000

2
sessions/syncweb.sh Executable file
View File

@@ -0,0 +1,2 @@
flatpak run org.mozilla.Firefox https://3.basecamp.com/5456546/buckets/34127086/card_tables/6496384013
flatpak run org.mozilla.Firefox --new-window http://localhost:5173