aboutsummaryrefslogtreecommitdiffstats
path: root/plugin-dev-workspace.kdl
blob: 5465e77e5b45ba844b787514465607228799ec38 (plain) (blame)
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
layout {
    pane split_direction="vertical" {
        pane borderless=true
    }

    pane size=2 borderless=true {
        plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" {
            format_left               "{mode}#[fg=#89B4FA,bg=#181825,bold] {session} {tabs}"
            format_center             "{command_0} {command_1} {command_git_branch} {command_3}"
            format_right              "{tabs}{notifications}{swap_layout}{datetime}"
            format_space              "#[bg=#181825]"
            format_precedence         "lrc"
            format_hide_on_overlength "false"

            notification_format_unread "#[fg=#89B4FA,bg=#181825,blink]  #[fg=#89B4FA,bg=#181825] {message} "
            notification_format_no_notifications "#[fg=#89B4FA,bg=#181825,dim]   "
            notification_show_interval "10"

            border_enabled  "true"
            border_char     "─"
            border_format   "#[fg=#6C7086]{char}"
            border_position "top"

            swap_layout_format        "#[bg=blue,fg=#000000] {name} #[bg=red,fg=black] foo "
            swap_layout_hide_if_empty "false"

            hide_frame_for_single_pane "true"

            mode_normal          "#[bg=blue] #[bg=yellow] "
            mode_tmux            "#[bg=yellow] "
            mode_default_to_mode "tmux"

            tab_normal              "#[fg=#6C7086,bg=#181825] {index} {name} {floating_indicator} "
            tab_rename              "#[fg=#eba0ac,bg=#181825] {index} {name} {floating_indicator} "
            tab_normal_fullscreen   "#[fg=#6C7086,bg=#181825] {index} {name} [] "
            tab_normal_sync         "#[fg=#6C7086,bg=#181825] {index} {name} <> "
            tab_active              "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} {floating_total_count}{floating_indicator}{sync_indicator}{fullscreen_indicator}"
            tab_separator           "#[fg=#6C7086,bg=#181825] | "
            tab_floating_indicator  "F"
            tab_sync_indicator      "S"
            tab_fullscreen_indicator "FS"

            command_0_command      "echo \"平仮名, ひらがな 📦\""
            command_0_clickaction "bash -c \"zellij --session zjstatus-dev pipe 'zjstatus::notify::hello world!' -n zjstatus\""
            command_0_format       "#[fg=colour80] {exit_code} #[fg=colour90] {stdout} "
            command_0_interval     "1"

            command_1_command   "date"
            command_1_format    "#[fg=blue,reverse,bg=default,us=red,blink,dim,strikethrough] {exit_code} {stdout} "
            command_1_interval  "1"

            command_git_branch_command   "bash -c \"echo $FOO\""
            command_git_branch_cwd       "/Users/daniel"
            command_git_branch_env       {
                FOO "1"
                BAR "foo"
            }
            command_git_branch_format    "#[fg=red] {stdout} "
            command_git_branch_interval  "2"

            command_3_command   "echo -e \"#[italic,bold] foo #[dim,bold,italic] bar \""
            command_3_format    "{stdout}"
            command_3_interval  "10"
            command_3_rendermode "dynamic"

            datetime          "#[fg=#6C7086,bg=#181825,bold] {format} "
            datetime_format   "%A, %d %b %Y %H:%M"
            datetime_timezone "Europe/Berlin"
        }
    }
}