From e71875c9278a0aa34fcc9749bc61bedd1c2f3c60 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 2 Apr 2024 08:43:16 +0300 Subject: [PATCH] Tmux : Simplify date. --- module/common/tmux/Script.sh | 5 ++++- module/common/tmux/tmux.conf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/common/tmux/Script.sh b/module/common/tmux/Script.sh index 2166e4d..9f17449 100755 --- a/module/common/tmux/Script.sh +++ b/module/common/tmux/Script.sh @@ -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}%" diff --git a/module/common/tmux/tmux.conf b/module/common/tmux/tmux.conf index dd63f1e..4977c21 100644 --- a/module/common/tmux/tmux.conf +++ b/module/common/tmux/tmux.conf @@ -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 ""