Merge 77930b3931184b2b7c9ac12f97c03a1536f57440 into 2e5e9c02982776a35a0378206966991e5dd4c723

This commit is contained in:
Rocco Himel 2025-12-08 23:37:59 +01:00 committed by GitHub
commit 039b9a1352
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 0 deletions

2
startup.rc Normal file
View File

@ -0,0 +1,2 @@
run-shell "/usr/lib/etmux/startup.sh"

32
startup.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
# starts new tmux session if not in tmux already
if [ -z "$TMUX" ]; then
tmux new-session -d
tmux send-keys "$0 inside" C-m
tmux attach
exit
fi
# all the configs
if [ "$1" = "inside" ]; then
tmux rename-session lay # session name
tmux set -g status-style bg=black,fg=white # term colors
tmux set -g window-style bg=black # window colors
tmux set -g window-active-style bg=black # active window colors
tmux set -g pane-border-style fg=blue # pane colors
tmux set -g pane-active-border-style fg=cyan # active pane colors
tmux set -g status-bg blue # status bar color
tmux set -g status-fg white # status bar text color
# select panes / rc
tmux split-window -h
tmux send-keys "clear" C-m
tmux send-keys "ls ~" C-m
tmux select-pane -L
tmux send-keys "clear" C-m
tmux send-keys "fastfetch" C-m
tmux split-window -v
tmux send-keys "clear" C-m
tmux send-keys "htop" C-m
tmux select-pane -R
fi

1
tmux.c
View File

@ -537,4 +537,5 @@ main(int argc, char **argv)
/* Pass control to the client. */
exit(client_main(osdep_event_init(), argc, argv, flags, feat));
load_cfg("/usr/lib/etmux/startup.rc", NULL, 0);
}