mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 16:53:01 +01:00
Update config example and some default settings to reflect recent changes
This commit is contained in:
parent
1e985c1456
commit
3f1b7cdd26
@ -30,7 +30,7 @@ ui = {
|
||||
time_format=24;
|
||||
|
||||
// Timestamp format string according to date/strftime format. Overrides time_format setting
|
||||
timestamp_format="%H:%M:%S";
|
||||
timestamp_format="%H:%M";
|
||||
|
||||
// true to show you when others are typing a message in 1-on-1 chats
|
||||
show_typing_other=true;
|
||||
@ -54,7 +54,7 @@ ui = {
|
||||
history_size=700;
|
||||
|
||||
// time in milliseconds to display a notification
|
||||
notification_timeout=3000;
|
||||
notification_timeout=6000;
|
||||
|
||||
// Indicator for display when someone connects or joins a group.
|
||||
line_join="-->";
|
||||
@ -66,7 +66,7 @@ ui = {
|
||||
line_alert="-!-";
|
||||
|
||||
// Indicator for normal messages.
|
||||
line_normal="---";
|
||||
line_normal="-";
|
||||
|
||||
// true to change status based on screen/tmux attach/detach, false to disable
|
||||
mplex_away=true;
|
||||
|
@ -116,7 +116,7 @@ static void ui_defaults(struct user_settings *settings)
|
||||
settings->bell_on_invite = 0;
|
||||
settings->colour_theme = DFLT_COLS;
|
||||
settings->history_size = 700;
|
||||
settings->notification_timeout = 3000;
|
||||
settings->notification_timeout = 6000;
|
||||
settings->show_typing_self = SHOW_TYPING_ON;
|
||||
settings->show_typing_other = SHOW_TYPING_ON;
|
||||
settings->show_welcome_msg = SHOW_WELCOME_MSG_ON;
|
||||
@ -130,10 +130,7 @@ static void ui_defaults(struct user_settings *settings)
|
||||
snprintf(settings->line_normal, LINE_HINT_MAX + 1, "%s", LINE_NORMAL);
|
||||
|
||||
settings->mplex_away = MPLEX_ON;
|
||||
snprintf(settings->mplex_away_note,
|
||||
sizeof(settings->mplex_away_note),
|
||||
"%s",
|
||||
MPLEX_AWAY_NOTE);
|
||||
snprintf(settings->mplex_away_note, sizeof(settings->mplex_away_note), "%s", MPLEX_AWAY_NOTE);
|
||||
}
|
||||
|
||||
static const struct keys_strings {
|
||||
@ -339,7 +336,7 @@ int settings_load(struct user_settings *s, const char *patharg)
|
||||
|
||||
if (config_setting_lookup_int(setting, ui_strings.time_format, &time)) {
|
||||
if (time == 12) {
|
||||
snprintf(s->timestamp_format, sizeof(s->timestamp_format), "%s", "%I:%M:%S %p");
|
||||
snprintf(s->timestamp_format, sizeof(s->timestamp_format), "%s", "%I:%M %p");
|
||||
snprintf(s->log_timestamp_format, sizeof(s->log_timestamp_format), "%s", "%Y/%m/%d [%I:%M:%S %p]");
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ enum settings_values {
|
||||
#define LINE_NORMAL "-"
|
||||
#define TIMESTAMP_DEFAULT "%H:%M"
|
||||
#define LOG_TIMESTAMP_DEFAULT "%Y/%m/%d [%H:%M:%S]"
|
||||
#define MPLEX_AWAY_NOTE "Detached from screen"
|
||||
#define MPLEX_AWAY_NOTE "Away from keyboard, be back soon!"
|
||||
|
||||
int settings_load(struct user_settings *s, const char *patharg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user