summaryrefslogtreecommitdiffstats
path: root/src/root-config.json
blob: 076717e31a4cf577bd4564651277c5569d50368b (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
{
    "$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"
    },
    "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:}"
            }
        },
        "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"
                    }
                }
            }
        }
    }
}