This commit is contained in:
TheFlyingFool 2025-05-11 21:33:03 -05:00
parent c54f7cccf1
commit bf5d7a584a

View File

@ -48,6 +48,7 @@ set-option -g status-position bottom
# First line: Center (Window List) # First line: Center (Window List)
set-option -g status-format[0] '#[align=centre]#{W:#{E:window-status-format} ,#{E:window-status-current-format} }' 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) # 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]" 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]' set-window-option -g window-status-current-format '#[fg=colour16,bg=colour231] #I:#W #[fg=colour24,bg=colour24]'
# Bind function keys to windows # Bind function keys to windows
bind -n F1 select-window -t 1 bind -n F1 select-window -t :=1
bind -n F2 select-window -t 2 bind -n F2 select-window -t :=2
bind -n F3 select-window -t 3 bind -n F3 select-window -t :=3
bind -n F4 select-window -t 4 bind -n F4 select-window -t :=4
bind -n F5 select-window -t 5 bind -n F5 select-window -t :=5
bind -n F6 select-window -t 6 bind -n F6 select-window -t :=6
bind -n F7 select-window -t 7 bind -n F7 select-window -t :=7
bind -n F8 select-window -t 8 bind -n F8 select-window -t :=8
bind -n F9 select-window -t 9 bind -n F9 select-window -t :=9
bind -n F10 select-window -t 10 bind -n F10 select-window -t :=10
#start programs #start programs
new -s mysession -n "sys-mon" glances new -s mysession -n "sys-mon" glances
neww -n "Log" "journalctl -f" 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
#neww -n "Music" ncmpcpp #neww -n "Music" ncmpcpp
#neww -n "Deluge" deluge-console #neww -n "Deluge" deluge-console