From 4862739c0b3bbeb348fdafaa16e44070173360c1 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 6 Mar 2024 21:01:28 +0300 Subject: [PATCH] Util : Add a bell function. --- module/common/bash/module/Recursive.sh | 6 ++++++ module/common/bash/module/Util.sh | 3 +++ module/common/tmux/tmux.conf | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/module/common/bash/module/Recursive.sh b/module/common/bash/module/Recursive.sh index 91c071cd..581ce412 100644 --- a/module/common/bash/module/Recursive.sh +++ b/module/common/bash/module/Recursive.sh @@ -34,6 +34,9 @@ function recursive() { # return back on complete. cd "${current}" || failed=${?} + # Ring a bell. + _bell + return ${failed} } @@ -73,6 +76,9 @@ function recursive1() { # return back on complete. cd "${current}" + # Ring a bell. + _bell + return ${failed} } diff --git a/module/common/bash/module/Util.sh b/module/common/bash/module/Util.sh index 4c6cedd7..f2b07c3d 100644 --- a/module/common/bash/module/Util.sh +++ b/module/common/bash/module/Util.sh @@ -62,6 +62,9 @@ function _iterate_targets() { echo -e "${color_bred}Failed: ${failed}.${color_default}" false fi + + # Ring a bell. + _bell } # Skip current iteration. diff --git a/module/common/tmux/tmux.conf b/module/common/tmux/tmux.conf index 4fc5e072..c1c83a79 100644 --- a/module/common/tmux/tmux.conf +++ b/module/common/tmux/tmux.conf @@ -65,12 +65,12 @@ set -g status-position bottom set -g status-justify left set -g status-style 'bg=color236 fg=color230' -set -g status-left '#[bold,bg=color143,fg=color236] #H-#S #(count=$(tmux list-clients -t #S | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")#[bg=color236,fg=color143]' +set -g status-left '#[bold,bg=color142,fg=color236] #H-#S #(count=$(tmux list-clients -t #S | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")#[bg=color236,fg=color142]' 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=color236] %Y-%m-%d #[fg=color143]#[bg=color143,fg=color236,bold] %H:%M ' +set -g status-right ' #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")#[fg=color187,bg=color236] %Y-%m-%d #[fg=color142]#[bg=color142,fg=color236,bold] %H:%M ' set -g status-right-length 50 -set-window-option -g window-status-separator '' +set-window-option -g window-status-separator '#[fg=color142]' setw -g window-status-current-style 'fg=color187 bg=color236 bold italics' setw -g window-status-current-format ' #W '