Tmux : Simplify date.

This commit is contained in:
Dmitry Voronin 2024-04-02 08:43:16 +03:00
parent 8d14a2a771
commit e71875c927
2 changed files with 5 additions and 2 deletions

View file

@ -51,7 +51,10 @@ function _tmux_volume() {
icon="󰝟"
fi
wpctl get-volume @DEFAULT_SINK@ | grep '[MUTED]' && icon="󰸈"
local muted=$(wpctl get-volume @DEFAULT_SINK@ | grep '[MUTED]')
if [[ "${muted}" != "" ]]; then
icon="󰸈"
fi
echo -n "${icon}"
[[ "${level}" -gt 100 ]] && echo -n "\n${level}%"

View file

@ -71,7 +71,7 @@ set -g status-style "bg=#3c3836 fg=#a89984"
set -g status-left "#[bold,bg=#a89984,fg=#282828] #H-#S #(tmux_script client_count #S)#[bg=#3c3836,fg=#a89984]"
set -g status-left-length 50
set -g status-right-length 50
set -g status-right "#(tmux_script statusbar) %Y-%m-%d #[fg=#a89984]#[bold,bg=#a89984,fg=#282828] %H:%M "
set -g status-right "#(tmux_script statusbar) %d %a #[fg=#a89984]#[bold,bg=#a89984,fg=#282828] %H:%M "
set-window-option -g window-status-separator ""