Make appearance.calendarview more explicit in config file
Instead of using 0 or 1 as a value for `appearance.calendarview`, introduce the more explicit "monthly" and "weekly". Also update `scripts/calcurse-upgrade.sh` to reflect the change. Signed-off-by: Baptiste Jonglez <baptiste--git@jonglez.org> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
committed by
Lukas Fleischer
parent
f7a88a5515
commit
2c5235cca7
@@ -86,6 +86,8 @@ if grep -q -e '^auto_save=' -e '^auto_gc=' -e '^periodic_save=' \
|
||||
$1 == "general.systemdialogs" || $1 == "general.progressbar" \
|
||||
{ $2 = ($2 == "yes") ? "no" : "yes" }
|
||||
$1 == "general.firstdayofweek" { $2 = ($2 == "yes") ? "monday" : "sunday" }
|
||||
$1 == "appearance.calendarview" { $2 = ($2 == 0) ? "monthly" :
|
||||
($2 == 1) ? "weekly" : $2 }
|
||||
{ print }
|
||||
' < "$CONFFILE" > "$tmpfile"
|
||||
mv "$tmpfile" "$CONFFILE"
|
||||
|
||||
Reference in New Issue
Block a user