From bf5d7a584a0bca65717959385bafa9b616fa39c6 Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Sun, 11 May 2025 21:33:03 -0500 Subject: [PATCH] edditted --- .tmux.conf | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index c41e786..63abac5 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -48,6 +48,7 @@ set-option -g status-position bottom # First line: Center (Window List) set-option -g status-format[0] '#[align=centre]#{W:#{E:window-status-format} ,#{E:window-status-current-format} }' + # Second line: Center (Time/Date, ACPI, CPU/Mem, Hostname) set-option -g status-format[1] "#[align=centre]#[fg=red][Pending Updates: #(checkupdates | wc -l || echo "N/A")] #[fg=cyan][%H:%M %d-%b-%y] #[fg=yellow][#(acpi -b | awk -F', ' '{print $2, $3}')] #[fg=green,bg=default,bright][#(tmux-mem-cpu-load)] #[fg=blue][#h]" @@ -63,21 +64,25 @@ set-window-option -g window-status-format '#[fg=colour117,bg=colour24] #I:#W #[f set-window-option -g window-status-current-format '#[fg=colour16,bg=colour231] #I:#W #[fg=colour24,bg=colour24]' # Bind function keys to windows -bind -n F1 select-window -t 1 -bind -n F2 select-window -t 2 -bind -n F3 select-window -t 3 -bind -n F4 select-window -t 4 -bind -n F5 select-window -t 5 -bind -n F6 select-window -t 6 -bind -n F7 select-window -t 7 -bind -n F8 select-window -t 8 -bind -n F9 select-window -t 9 -bind -n F10 select-window -t 10 +bind -n F1 select-window -t :=1 +bind -n F2 select-window -t :=2 +bind -n F3 select-window -t :=3 +bind -n F4 select-window -t :=4 +bind -n F5 select-window -t :=5 +bind -n F6 select-window -t :=6 +bind -n F7 select-window -t :=7 +bind -n F8 select-window -t :=8 +bind -n F9 select-window -t :=9 +bind -n F10 select-window -t :=10 + + + #start programs new -s mysession -n "sys-mon" glances neww -n "Log" "journalctl -f" -#neww -n "ARA Server" "source ~/Repos/homelab/.venv/bin/activate && ara-manage runserver" +#neww -n "Music" if-shell -b '[[ "$TERM" == "xterm-kitty" ]]' "rmpc" if-shell -b '[["$TERM" == " != "kitty" ]] "ncmpcpp" +neww -n "ARA Server" "bash -c 'cd ~/Repos/homelab-ansible && export ARA_SETTINGS="/home/nick/Repos/homelab-ansible/.ara/server/settings.yaml" && source .venv/bin/activate && ara-manage runserver'" neww #neww -n "Music" ncmpcpp #neww -n "Deluge" deluge-console