From c1e722d02f0d5df21b441fdb9769adefb698c052 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Wed, 20 Jul 2022 20:14:17 -0400 Subject: [PATCH] ENH don't use hostname in tmux config --- dot_config/tmux/tmux.conf.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dot_config/tmux/tmux.conf.tmpl b/dot_config/tmux/tmux.conf.tmpl index 1775597..994b48d 100644 --- a/dot_config/tmux/tmux.conf.tmpl +++ b/dot_config/tmux/tmux.conf.tmpl @@ -124,9 +124,9 @@ bind -T off F12 \ set -u window-status-current-style \;\ refresh-client -S -# if on local machine, put bar at top, if not put bar at bottom with some nice -# stats that the local machine already has via conky -{{- if eq .chezmoi.hostname "petrucci4prez" }} +{{/* for bar position, local -> top, remote -> bottom */ -}} +{{- /* TODO make this dynamic, in case I want to log into a desktop */ -}} +{{- if .desktop }} set -g status-position top set -g status-right "" set -g status-right-length 0 @@ -142,4 +142,4 @@ set -g status-position bottom set -g status-right-length 64 set -g status-right "$net $status_sep $cpu $status_sep $mem " -{{ end }} +{{- end }}