feat: set session as default for start icon

This commit is contained in:
Abhishek Keshri 2024-11-03 23:51:32 +05:30
parent aa26ec063d
commit 50dc7806a9
No known key found for this signature in database

View file

@ -8,7 +8,7 @@ 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" 'centre') window_list_alignment=$(get_tmux_option "@tmux2k-window-list-alignment" '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" '') 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")
@ -189,8 +189,8 @@ set_options() {
start_icon() { start_icon() {
case $start_icon in case $start_icon in
session) start_icon="#S" ;; session) start_icon="#S" ;;
window) start_icon="#W" ;; window) start_icon="#W" ;;
esac esac
first_plugin=${lplugins[0]} first_plugin=${lplugins[0]}