From b566e93b18f2409b600ffa08cd2834fe57749758 Mon Sep 17 00:00:00 2001 From: th3r00t Date: Wed, 20 Aug 2025 15:02:42 -0400 Subject: [PATCH] Conditional tmux formatting based on hostname --- modules/home-manager-common.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/home-manager-common.nix b/modules/home-manager-common.nix index 3239ce9..49c2ec6 100644 --- a/modules/home-manager-common.nix +++ b/modules/home-manager-common.nix @@ -97,15 +97,17 @@ set -g @tokyo-night-tmux_window_id_style digital set -g @tokyo-night-tmux_pane_id_style hsquare set -g @tokyo-night-tmux_zoom_id_style dsquare - set -g @tokyo-night-tmux_show_netspeed 1 - set -g @tokyo-night-tmux_netspeed_iface "wlp2s0" # Detected via default route - set -g @tokyo-night-tmux_netspeed_showip 1 # Display IPv4 address (default 0) - set -g @tokyo-night-tmux_netspeed_refresh 1 # Update interval in seconds (default 1) + if-shell "[[ $(hostname) = 'xps13' ]]" { + set -g @tokyo-night-tmux_show_netspeed 1 + set -g @tokyo-night-tmux_netspeed_iface 'wlp2s0' + set -g @tokyo-night-tmux_netspeed_showip 1 + set -g @tokyo-night-tmux_netspeed_refresh 1 + set -g @tokyo-night-tmux_show_battery_widget 1 + set -g @tokyo-night-tmux_battery_name "BAT0" + set -g @tokyo-night-tmux_battery_low_threshold 21 + } set -g @tokyo-night-tmux_show_path 1 set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full' - set -g @tokyo-night-tmux_show_battery_widget 1 - set -g @tokyo-night-tmux_battery_name "BAT0" # some linux distro have 'BAT0' - set -g @tokyo-night-tmux_battery_low_threshold 21 # default ''; } tmuxPlugins.tmux-fzf