package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file cmd_layout_tiling.ml

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
open! Oxbow_ipc

let command_term =
  let open Cmdliner.Term.Syntax in
  let+ scope = Ctl_cli.setting_scope_term in
  Command.Layout (Select { layout = Tiling; scope })
;;

let name = "tiling"
let doc = "Switch to the tiling layout"

let cmd, bind_cmd =
  Ctl_cli.group_pair
    ~name
    ~doc
    ~default:command_term
    ~extra:[ Cmd_layout_tiling_query.cmd ]
  @@ Cmd_layout_tiling_cycle.(List.combine cmds bind_cmds)
  @ Cmd_layout_tiling_select.(List.combine cmds bind_cmds)
  @ [ Cmd_layout_tiling_mfact.(cmd, bind_cmd)
    ; Cmd_layout_tiling_nmaster.(cmd, bind_cmd)
    ; Cmd_layout_tiling_orientation.(cmd, bind_cmd)
    ; Cmd_layout_tiling_scheme.(cmd, bind_cmd)
    ]
;;