aboutsummaryrefslogtreecommitdiff
path: root/.config/rmpc/config.ron
blob: c99b94e9d7c4a0938db780140c06b6f4abeeb065 (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
  address: "127.0.0.1:6600",
  volume_step: 5,
  scrolloff: 2,
  max_fps: 60,
  wrap_navigation: true,
  theme: "def",
  lyrics_dir: "/mnt/ssd/music",
  on_song_change: ["~/.config/rmpc/scripts/statusbar"],
  on_resize: None,
  status_update_interval_ms: 1000,
  enable_mouse: true,
  enable_config_hot_reload: true,
  album_art: (
    method: Auto,
    max_size_px: (width: 0, height: 0),
    vertical_align: Top,
    horizontal_align: Center,
  ),
  keybinds: (
    global: {
      ":":       CommandMode,
      ",":       VolumeDown,
      "s":       Stop,
      ".":       VolumeUp,
      "<Tab>":   NextTab,
      "<S-Tab>": PreviousTab,
      "1":       SwitchToTab("Queue"),
      "2":       SwitchToTab("Directories"),
      "3":       SwitchToTab("Artists"),
      "4":       SwitchToTab("Albums"),
      "5":       SwitchToTab("Playlists"),
      "6":       SwitchToTab("Search"),
      "q":       Quit,
      ">":       NextTrack,
      "p":       TogglePause,
      "<":       PreviousTrack,
      "f":       SeekForward,
      "z":       ToggleRepeat,
      "x":       ToggleRandom,
      "c":       ToggleConsume,
      "v":       ToggleSingle,
      "b":       SeekBack,
      "~":       ShowHelp,
      "I":       ShowCurrentSongInfo,
      "O":       ShowOutputs,
      "P":       ShowDecoders,
    },
    navigation: {
      "k":         Up,
      "j":         Down,
      "h":         Left,
      "l":         Right,
      "<Up>":      Up,
      "<Down>":    Down,
      "<Left>":    Left,
      "<Right>":   Right,
      "<C-k>":     PaneUp,
      "<C-j>":     PaneDown,
      "<C-h>":     PaneLeft,
      "<C-l>":     PaneRight,
      "<C-u>":     UpHalf,
      "N":         PreviousResult,
      "a":         Add,
      "A":         AddAll,
      "r":         Rename,
      "n":         NextResult,
      "g":         Top,
      "<Space>":   Select,
      "<C-Space>": InvertSelection,
      "G":         Bottom,
      "<CR>":      Confirm,
      "i":         FocusInput,
      "J":         MoveDown,
      "<C-d>":     DownHalf,
      "/":         EnterSearch,
      "<C-c>":     Close,
      "<Esc>":     Close,
      "K":         MoveUp,
      "D":         Delete,
    },
    queue: {
      "D":       DeleteAll,
      "<CR>":    Play,
      "<C-s>":   Save,
      "a":       AddToPlaylist,
      "d":       Delete,
      "i":       ShowInfo,
      "C":       JumpToCurrent,
    },
  ),
  search: (
    case_sensitive: false,
    mode: Contains,
    tags: [
    (value: "any",         label: "Any Tag"),
    (value: "artist",      label: "Artist"),
    (value: "album",       label: "Album"),
    (value: "albumartist", label: "Album Artist"),
    (value: "title",       label: "Title"),
    ],
  ),
  tabs: [
  (
      name: "Queue",
      pane: Split(
        direction: Vertical,
        panes: [
        (
            size: "100%",
            borders: "NONE",
            pane: Split(
              borders: "NONE",
              direction: Horizontal,
              panes: [
              (
                  size: "70%",
                  borders: "ALL",
                  pane: Pane(Queue),
                ),
              (
                  size: "30%",
                  borders: "ALL",
                  pane: Split(
                    direction: Vertical,
                    panes: [
                    (
                        size: "75%",
                        borders: "NONE",
                        pane: Pane(AlbumArt),
                      ),
                    (
                        size: "25%",
                        borders: "NONE",
                        pane: Split(
                          direction: Vertical,
                          panes: [
                          (
                              size: "100%",
                              pane: Pane(Lyrics),
                            ),
                          ]
                        ),
                      ),
                    ]
                  ),
                ),
              ]
            ),
          ),
        ],
      ),
    ),
  (
      name: "Directories",
      pane: Split(
        direction: Horizontal,
        panes: [(size: "100%", borders: "ALL", pane: Pane(Directories))],
      ),
    ),
  (
      name: "Artists",
      pane: Split(
        direction: Horizontal,
        panes: [(size: "100%", borders: "ALL", pane: Pane(Artists))],
      ),
    ),
  (
      name: "Albums",
      pane: Split(
        direction: Horizontal,
        panes: [(size: "100%", borders: "ALL", pane: Pane(Albums))],
      ),
    ),
  (
      name: "Playlists",
      pane: Split(
        direction: Horizontal,
        panes: [(size: "100%", borders: "ALL", pane: Pane(Playlists))],
      ),
    ),
  (
      name: "Search",
      pane: Split(
        direction: Horizontal,
        panes: [(size: "100%", borders: "ALL", pane: Pane(Search))],
      ),
    ),
  ],
)