summaryrefslogtreecommitdiffstats
path: root/src/root-config.json
blob: cc7e8c51747544991646a3b065e7b1d180ce799c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
    "$schema": "https://lnav.org/schemas/config-v1.schema.json",
    "ui": {
        "clock-format": "%Y-%m-%dT%H:%M:%S %Z",
        "dim-text": false,
        "default-colors": true,
        "keymap": "default",
        "theme": "default",
        "mouse": {
            "mode": "disabled"
        },
        "movement": {
            "mode": "cursor"
        }
    },
    "log": {
        "date-time": {
            "convert-zoned-to-local": true
        },
        "annotations": {
            "com.vmware.vmacore.backtrace": {
                "description": "Convert a vmacore backtrace into human-readable text",
                "condition": ":log_body LIKE '%[context]%[/context]%'",
                "handler": "com.vmware.btresolver.py"
            }
        }
    },
    "tuning": {
        "archive-manager": {
            "min-free-space": 33554432,
            "cache-ttl": "2d"
        },
        "remote": {
            "ssh": {
                "command": "ssh",
                "config": {
                    "BatchMode": "yes",
                    "ConnectTimeout": "10"
                },
                "start-command": "bash -c ./{0:}",
                "transfer-command": "cat > {0:} && chmod ugo+rx ./{0:}"
            }
        },
        "piper": {
            "max-size": 10485760,
            "rotations": 4,
            "ttl": "2d"
        },
        "clipboard": {
            "impls": {
                "MacOS": {
                    "test": "command -v pbcopy",
                    "general": {
                        "write": "pbcopy",
                        "read": "pbpaste -Prefer txt"
                    },
                    "find": {
                        "write": "pbcopy -pboard find",
                        "read": "pbpaste -pboard find -Prefer txt"
                    }
                },
                "Wayland": {
                    "test": "test -n \"$WAYLAND_DISPLAY\"",
                    "general": {
                        "write": "wl-copy --foreground --type text/plain",
                        "read": "wl-paste --no-newline"
                    }
                },
                "X11-xclip": {
                    "test": "test -n \"$DISPLAY\" && command -v xclip",
                    "general": {
                        "write": "xclip -i -selection clipboard",
                        "read": "xclip -o -selection clipboard"
                    }
                },
                "tmux": {
                    "test": "test -n \"$TMUX\" -a -z \"$SSH_CLIENT\"",
                    "general": {
                        "write": "tmux load-buffer -",
                        "read": "tmux save-buffer -"
                    }
                },
                "NeoVim": {
                    "test": "command -v win32yank.exe",
                    "general": {
                        "write": "win32yank.exe -i --crlf",
                        "read": "win32yank.exe -o --lf"
                    }
                },
                "Windows": {
                    "test": "command -v clip.exe",
                    "general": {
                        "write": "clip.exe"
                    }
                }
            }
        },
        "url-scheme": {
            "docker": {
                "handler": "docker-url-handler"
            },
            "docker-compose": {
                "handler": "docker-compose-url-handler"
            },
            "journald": {
                "handler": "journald-url-handler"
            },
            "piper": {
                "handler": "piper-url-handler"
            },
            "podman": {
                "handler": "docker-url-handler"
            }
        }
    }
}