diff --git a/module/common/Tmux.nix b/module/common/Tmux.nix index 5cd2290..0975125 100644 --- a/module/common/Tmux.nix +++ b/module/common/Tmux.nix @@ -1,4 +1,4 @@ -{ ... }: { +{ pkgs, ... }: { programs.tmux = { enable = true; extraConfig = builtins.readFile ./tmux/tmux.conf; diff --git a/module/common/tmux/tmux.conf b/module/common/tmux/tmux.conf index ebf2c33..a82b9a1 100644 --- a/module/common/tmux/tmux.conf +++ b/module/common/tmux/tmux.conf @@ -65,7 +65,7 @@ set -g status-position bottom set -g status-justify left set -g status-style 'bg=color236 fg=color187' -set -g status-left ' #[bold]#H-#S #(count=$(tmux list-clients -t #S | wc -l); [ $${count} -gt 1 ] && echo "($${count}) ")' +set -g status-left ' #[bold]#H-#S #(count=$(tmux list-clients -t #S | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")' set -g status-left-length 50 set -g status-right ' #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")#[fg=color187,bg=color239] %Y-%m-%d #[bg=color138,fg=black,bold] %H:%M ' set -g status-right-length 50