dracula.sh: deleted use_arbitrary_time_format option

This commit is contained in:
Yusuke Uchida 2021-10-16 00:57:10 +09:00
parent c39cc30213
commit 597f7bed29

View file

@ -24,7 +24,6 @@ main()
show_border_contrast=$(get_tmux_option "@dracula-border-contrast" false) show_border_contrast=$(get_tmux_option "@dracula-border-contrast" false)
show_day_month=$(get_tmux_option "@dracula-day-month" false) show_day_month=$(get_tmux_option "@dracula-day-month" false)
show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5) show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5)
use_arbitrary_time_format=$(get_tmux_option "@dracula-arbitrary-time-format" false)
time_format=$(get_tmux_option "@dracula-time-format" "%Y-%m-%d(%a) %H:%M") time_format=$(get_tmux_option "@dracula-time-format" "%Y-%m-%d(%a) %H:%M")
IFS=' ' read -r -a plugins <<< $(get_tmux_option "@dracula-plugins" "battery network weather") IFS=' ' read -r -a plugins <<< $(get_tmux_option "@dracula-plugins" "battery network weather")
@ -183,20 +182,19 @@ main()
if [ $plugin = "time" ]; then if [ $plugin = "time" ]; then
IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-time-colors" "dark_purple white") IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-time-colors" "dark_purple white")
case $use_arbitrary_time_format in if [ -n "$time_format" ]; then
false) script=${time_format}
if $show_day_month && $show_military ; then # military time and dd/mm else
script="%a %d/%m %R ${timezone} " if $show_day_month && $show_military ; then # military time and dd/mm
elif $show_military; then # only military time script="%a %d/%m %R ${timezone} "
script="%a %m/%d %R ${timezone} " elif $show_military; then # only military time
elif $show_day_month; then # only dd/mm script="%a %m/%d %R ${timezone} "
script="%a %d/%m %I:%M %p ${timezone} " elif $show_day_month; then # only dd/mm
else script="%a %d/%m %I:%M %p ${timezone} "
script="%a %m/%d %I:%M %p ${timezone} " else
fi;; script="%a %m/%d %I:%M %p ${timezone} "
true) fi
script=${time_format};; fi
esac
fi fi
if $show_powerline; then if $show_powerline; then