Krolyxon
Commit 222ab2f

rmptuisrcconfigdefault.toml

212 lines · 5.7 KB · TOML

1# rmptui configuration
2#
3# Every option is shown with its default value. Settings you leave out keep
4# their defaults, so you can trim this file down to the parts you change.
5# Restart rmptui to apply changes.
6
7[mpd]
8# Hostname, IP address, or the path of MPD's Unix socket (starting with `/`
9# or `~`). Overridden by the MPD_HOST environment variable, which also accepts
10# `password@host`.
11host = "127.0.0.1"
12# Overridden by MPD_PORT. Ignored for Unix sockets.
13port = 6600
14# Set this only if your MPD server requires a password. It is stored in plain
15# text; rmptui creates this file readable only by you.
16password = ""
17# The music directory on this machine, required by the tag editor and for
18# `.lrc` files stored next to songs. Leave empty to ask MPD, which only answers
19# over a Unix socket.
20music_directory = ""
21
22[playback]
23# Seconds moved by seek_forward / seek_backward.
24seek_seconds = 5
25# Percent changed by volume_up / volume_down.
26volume_step = 5
27
28[ui]
29# Screen shown on startup: queue, browser, playlists, library, tag_editor,
30# visualizer or lyrics.
31startup_screen = "queue"
32# Enable mouse support (click to select, double-click to play/open, wheel to
33# scroll, click the progress bar to seek).
34mouse = true
35# Ask before clearing the queue.
36confirm_clear_queue = false
37# Show the lyrics pane next to the queue on startup (toggle with `L`).
38lyrics_pane = false
39# Width of the lyrics pane in percent of the screen.
40lyrics_pane_width = 40
41# Seconds a status message stays visible.
42message_timeout = 4
43# Columns of the song tables (queue, browser, playlist contents). `field` is
44# one of artist, album_artist, title, album, track, disc, date, genre,
45# duration or file. `width` is a relative weight, except for track, disc and
46# duration, where it is a fixed number of characters.
47song_columns = [
48 { field = "artist", width = 34 },
49 { field = "track", width = 5 },
50 { field = "title", width = 33 },
51 { field = "album", width = 30 },
52 { field = "duration", width = 5 },
53]
54
55[theme]
56# Colors are names (black, red, green, yellow, blue, magenta, cyan, gray,
57# darkgray, lightred, …, white, reset), 256-color indices ("208") or hex
58# values ("#c694ff"). "reset" is your terminal's default color.
59text = "reset"
60dim = "darkgray"
61# Horizontal and vertical separator lines.
62border = "gray"
63# The selected row. With both set to "reset", the row is shown in reverse
64# video like ncmpcpp.
65selection_fg = "reset"
66selection_bg = "reset"
67playing = "reset"
68marked = "yellow"
69directory = "reset"
70error = "red"
71# Song table columns.
72artist = "reset"
73track = "darkgray"
74album = "reset"
75duration = "reset"
76# The filled part of the progress bar.
77progress = "gray"
78# Visualizer bar gradient, from the bottom of the screen to the top.
79visualizer = ["blue", "cyan", "green", "yellow", "red"]
80
81[lyrics]
82# Look up lyrics on https://lrclib.net when no local `.lrc` file exists.
83online = true
84# Keep fetched lyrics in $XDG_CACHE_HOME/rmptui/lyrics (~/.cache by default).
85cache = true
86lrclib_url = "https://lrclib.net"
87
88[visualizer]
89# Path of an MPD fifo output. Add this to mpd.conf:
90#
91# audio_output {
92# type "fifo"
93# name "Visualizer feed"
94# path "/tmp/mpd.fifo"
95# format "44100:16:2"
96# }
97fifo = "/tmp/mpd.fifo"
98# Must match the `format` of the fifo output.
99sample_rate = 44100
100channels = 2
101framerate = 60
102bar_width = 2
103bar_gap = 1
104min_frequency = 40
105max_frequency = 16000
106# How fast bars fall, in screen heights per second.
107falloff = 1.5
108
109# Key bindings
110#
111# Each table is a context. Lookups start with the context of the focused
112# popup or screen, then `navigation`, then `global`, so a key bound in a
113# screen context shadows the same key in `global` on that screen.
114#
115# Each action takes a list of keys. A key is a character or one of Enter,
116# Esc, Tab, Backspace, Delete, Insert, Space, Up, Down, Left, Right, Home,
117# End, PageUp, PageDown and F1–F24, optionally prefixed by Ctrl+, Alt+ or
118# Shift+ (e.g. "Ctrl+x", "Alt+Enter", "Shift+Tab"). Set an action to [] to
119# unbind it; a key may only be used once per context.
120
121[keys.global]
122quit = ["q", "Ctrl+c"]
123help = ["?", "F1"]
124toggle_pause = ["p"]
125pause = ["s"]
126stop = ["x"]
127next_track = [">"]
128previous_track = ["<"]
129seek_forward = ["f"]
130seek_backward = ["b"]
131volume_up = ["+", "="]
132volume_down = ["-"]
133toggle_mute = ["m"]
134toggle_repeat = ["r"]
135toggle_random = ["z"]
136toggle_single = ["y"]
137toggle_consume = ["R"]
138update_database = ["U"]
139clear_queue = ["c"]
140next_screen = ["Tab"]
141previous_screen = ["Shift+Tab"]
142screen_queue = ["1"]
143screen_browser = ["2"]
144screen_playlists = ["3"]
145screen_library = ["4"]
146screen_tag_editor = ["5"]
147screen_visualizer = ["6"]
148screen_lyrics = ["7"]
149
150[keys.navigation]
151up = ["k", "Up"]
152down = ["j", "Down"]
153top = ["g", "Home"]
154bottom = ["G", "End"]
155page_up = ["PageUp"]
156page_down = ["PageDown"]
157half_page_up = ["Ctrl+u"]
158half_page_down = ["Ctrl+d"]
159left = ["h", "Left", "Backspace"]
160right = ["l", "Right"]
161activate = ["Enter"]
162toggle_mark = ["v", "Insert"]
163clear_marks = ["V"]
164search = ["/"]
165search_next = ["n"]
166search_previous = ["N"]
167add_to_queue = ["Space"]
168add_to_playlist = ["a"]
169
170[keys.queue]
171delete = ["d", "Delete"]
172move_item_up = ["K"]
173move_item_down = ["J"]
174shuffle_queue = ["Z"]
175save_queue = ["S"]
176jump_to_current = ["o"]
177toggle_lyrics_pane = ["L"]
178
179[keys.browser]
180
181[keys.playlists]
182delete = ["d", "Delete"]
183move_item_up = ["K"]
184move_item_down = ["J"]
185delete_playlist = ["D"]
186rename_playlist = ["R"]
187
188[keys.library]
189toggle_artist_tag = ["t"]
190
191[keys.tag_editor]
192save_tags = ["w"]
193revert_tags = ["u"]
194
195[keys.visualizer]
196
197[keys.lyrics]
198reload_lyrics = ["F5"]
199
200[keys.popup]
201close = ["q", "Esc"]
202
203[keys.input]
204submit = ["Enter"]
205cancel = ["Esc"]
206backspace = ["Backspace"]
207delete_char = ["Delete"]
208delete_word = ["Ctrl+w"]
209cursor_left = ["Left"]
210cursor_right = ["Right"]
211cursor_home = ["Home", "Ctrl+a"]
212cursor_end = ["End", "Ctrl+e"]