diff --git a/configs/tmux/default.nix b/configs/tmux/default.nix index b61294a..04bf87f 100644 --- a/configs/tmux/default.nix +++ b/configs/tmux/default.nix @@ -176,10 +176,20 @@ in tm_session_name="#[default,bg=$base00,fg=$base0E] #S " set -g status-left "$tm_session_name" - - tm_tunes="#[bg=$base00,fg=$base0D] ♫ #(playerctl metadata title)" + '' + + + (if isDarwin then + '' + tm_battery="#[fg=$base0F,bg=$base00] ♥ #(pmset -g batt | grep InternalBattery | awk '{print $3}' | sed 's/;$//')" + '' + else + '' tm_battery="#[fg=$base0F,bg=$base00] ♥ #(acpi --battery | awk \'{gsub(\",\", \"\"); print \$4}\')" - tm_date="#[default,bg=$base00,fg=$base0C] %I:%M %p" + '' + ) + + + '' + tm_date="#[default,bg=$base00,fg=$base0C] %I:%M %p %Z" tm_host="#[fg=$base0E,bg=$base00] #h " set -g status-right "$tm_tunes $tm_battery $tm_date $tm_host" '';