mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
Update tmux2k.sh
This commit is contained in:
parent
a5a75236bc
commit
0b9f21e5a9
1 changed files with 0 additions and 12 deletions
|
|
@ -8,7 +8,6 @@ source "$current_dir"/utils.sh
|
||||||
show_powerline=$(get_tmux_option "@tmux2k-show-powerline" true)
|
show_powerline=$(get_tmux_option "@tmux2k-show-powerline" true)
|
||||||
window_list_alignment=$(get_tmux_option "@tmux2k-window-list-alignment" 'absolute-centre')
|
window_list_alignment=$(get_tmux_option "@tmux2k-window-list-alignment" 'absolute-centre')
|
||||||
refresh_rate=$(get_tmux_option "@tmux2k-refresh-rate" 60)
|
refresh_rate=$(get_tmux_option "@tmux2k-refresh-rate" 60)
|
||||||
start_icon=$(get_tmux_option "@tmux2k-start-icon" "session")
|
|
||||||
l_sep=$(get_tmux_option "@tmux2k-left-sep" )
|
l_sep=$(get_tmux_option "@tmux2k-left-sep" )
|
||||||
r_sep=$(get_tmux_option "@tmux2k-right-sep" )
|
r_sep=$(get_tmux_option "@tmux2k-right-sep" )
|
||||||
wl_sep=$(get_tmux_option "@tmux2k-window-left-sep" )
|
wl_sep=$(get_tmux_option "@tmux2k-window-left-sep" )
|
||||||
|
|
@ -191,16 +190,6 @@ set_options() {
|
||||||
tmux set-window-option -g window-status-current-style "bold"
|
tmux set-window-option -g window-status-current-style "bold"
|
||||||
}
|
}
|
||||||
|
|
||||||
start_icon() {
|
|
||||||
case $start_icon in
|
|
||||||
session) start_icon=" #S" ;;
|
|
||||||
window) start_icon=" #W" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
IFS=' ' read -r -a first_colors <<<"$(get_plugin_colors "current")"
|
|
||||||
tmux set-option -g status-left "#[bg=${!first_colors[0]},fg=${!first_colors[1]}]#{?client_prefix,#[bg=${light_yellow},} ${start_icon} "
|
|
||||||
}
|
|
||||||
|
|
||||||
status_bar() {
|
status_bar() {
|
||||||
side=$1
|
side=$1
|
||||||
if [ "$side" == "left" ]; then
|
if [ "$side" == "left" ]; then
|
||||||
|
|
@ -275,7 +264,6 @@ window_list() {
|
||||||
main() {
|
main() {
|
||||||
set_theme
|
set_theme
|
||||||
set_options
|
set_options
|
||||||
start_icon
|
|
||||||
status_bar "left"
|
status_bar "left"
|
||||||
window_list
|
window_list
|
||||||
status_bar "right"
|
status_bar "right"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue