summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.go b/config.go
index 7823ae7..2450e75 100644
--- a/config.go
+++ b/config.go
@@ -63,6 +63,7 @@ type Config struct {
Highlights []string
OnHighlightPath string
+ OnHighlightBeep bool
NickColWidth int
ChanColWidth int
ChanColEnabled bool
@@ -96,6 +97,7 @@ func Defaults() (cfg Config, err error) {
Mouse: true,
Highlights: nil,
OnHighlightPath: "",
+ OnHighlightBeep: false,
NickColWidth: 14,
ChanColWidth: 16,
ChanColEnabled: true,
@@ -197,6 +199,15 @@ func unmarshal(filename string, cfg *Config) (err error) {
if err := d.ParseParams(&cfg.OnHighlightPath); err != nil {
return err
}
+ case "on-highlight-beep":
+ var onHighlightBeep string
+ if err := d.ParseParams(&onHighlightBeep); err != nil {
+ return err
+ }
+
+ if cfg.OnHighlightBeep, err = strconv.ParseBool(onHighlightBeep); err != nil {
+ return err
+ }
case "pane-widths":
for _, child := range d.Children {
switch child.Name {