Util : Add a bell function.

This commit is contained in:
Dmitry Voronin 2024-03-06 21:01:28 +03:00
parent 6d1c617fc4
commit 4862739c0b
3 changed files with 12 additions and 3 deletions

View file

@ -34,6 +34,9 @@ function recursive() {
# return back on complete. # return back on complete.
cd "${current}" || failed=${?} cd "${current}" || failed=${?}
# Ring a bell.
_bell
return ${failed} return ${failed}
} }
@ -73,6 +76,9 @@ function recursive1() {
# return back on complete. # return back on complete.
cd "${current}" cd "${current}"
# Ring a bell.
_bell
return ${failed} return ${failed}
} }

View file

@ -62,6 +62,9 @@ function _iterate_targets() {
echo -e "${color_bred}Failed: ${failed}.${color_default}" echo -e "${color_bred}Failed: ${failed}.${color_default}"
false false
fi fi
# Ring a bell.
_bell
} }
# Skip current iteration. # Skip current iteration.

View file

@ -65,12 +65,12 @@ set -g status-position bottom
set -g status-justify left set -g status-justify left
set -g status-style 'bg=color236 fg=color230' 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-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 -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-style 'fg=color187 bg=color236 bold italics'
setw -g window-status-current-format ' #W ' setw -g window-status-current-format ' #W '