Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
willhbr committed Mar 8, 2024
0 parents commit 082133d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec tmux -L test-sock "$@"
60 changes: 60 additions & 0 deletions tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
new-session -d -n test-session 'read && tmux wait-for -S test-session'
set -g display-time 0
set -g focus-events on

# push 1
new-window 'tmux wait-for test-session'
set-hook -t :=1 pane-focus-in {
run "tmux set-buffer '1'"
run 'tmux next-window'
}
# push 2
new-window 'tmux wait-for test-session'
set-hook -t :=2 pane-focus-in {
run "tmux set-buffer '1'"
run 'tmux next-window'
}
# store top
new-window 'tmux wait-for test-session'
set-hook -t :=3 pane-focus-in {
run 'tmux rename-window -t :=4 "#{buffer_sample}"'
run 'tmux delete-buffer'
run 'tmux next-window'
}
# # add
# new-window 'tmux wait-for test-session'
# set-hook -t :=4 pane-focus-in {
# run 'tmux rename-window -t :=4 "#{e|+:#{buffer_sample},#{window_name}}"'
# run 'tmux delete-buffer'
# run 'tmux set-buffer "#{window_name}"'
# run 'tmux next-window'
# }
# comp
new-window 'tmux wait-for test-session'
set-hook -t :=4 pane-focus-in {
run 'tmux select-window -t "#{?#{e|==:#{buffer_sample},#{window_name}},:=5,:=6}"'
run 'tmux delete-buffer'
}
new-window
new-window
# # display
# new-window 'tmux wait-for test-session'
# set-hook -t :=5 pane-focus-in {
# run 'tmux display -F "#{buffer_sample}"'
# run 'tmux delete-buffer'
# run 'tmux next-window'
# }

select-window -t :=0


# new-window
# new-window
# set-hook -t :=0 pane-focus-in {
# rename-window -t :=1 firstbutt
# run "tmux select-window -t :=1"
# }
# set-hook -t :=1 pane-focus-in {
# display "oh no"
# }
#

0 comments on commit 082133d

Please sign in to comment.