diff --git a/examples/example.window-screenshot.png b/examples/example.window-screenshot.png new file mode 100644 index 0000000..806cbcd Binary files /dev/null and b/examples/example.window-screenshot.png differ diff --git a/examples/example.window.sh b/examples/example.window.sh new file mode 100644 index 0000000..66be6dd --- /dev/null +++ b/examples/example.window.sh @@ -0,0 +1,15 @@ +# Set custom window name. Default is based on filename. +window_name "Example Window" + +# Set a window root path. Default is `$session_root`. +window_root "~/Desktop" + +# Create new window. Remove if you want to apply layout to current window. +tmux new-window -t "$session" -n "$window" + +# Split window into panes. +tmux split-window -t "$session:$window.0" -v -p 20 "watch -t date" +tmux split-window -t "$session:$window.1" -h -p 60 + +# Set active pane. +tmux select-pane -t "$session:$window.0"