Krolyxon
Commit 3a91ab1

rmptuisrcconfigdefault.toml

221 lines · 6.1 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# Startup style: wave, wave_filled, spectrum or ellipse. Press
99# `cycle_visualizer` (Space) on the visualizer screen to switch.
100style = "wave"
101# Draw the left channel in the top half and the right one in the bottom half
102# (wave styles only).
103stereo = true
104# Character used to draw the wave and ellipse styles.
105wave_symbol = "●"
106# Must match the `format` of the fifo output.
107sample_rate = 44100
108channels = 2
109framerate = 60
110bar_width = 2
111bar_gap = 1
112min_frequency = 40
113max_frequency = 16000
114# How fast bars fall, in screen heights per second.
115falloff = 1.5
116
117# Key bindings
118#
119# Each table is a context. Lookups start with the context of the focused
120# popup or screen, then `navigation`, then `global`, so a key bound in a
121# screen context shadows the same key in `global` on that screen.
122#
123# Each action takes a list of keys. A key is a character or one of Enter,
124# Esc, Tab, Backspace, Delete, Insert, Space, Up, Down, Left, Right, Home,
125# End, PageUp, PageDown and F1–F24, optionally prefixed by Ctrl+, Alt+ or
126# Shift+ (e.g. "Ctrl+x", "Alt+Enter", "Shift+Tab"). Set an action to [] to
127# unbind it; a key may only be used once per context.
128
129[keys.global]
130quit = ["q", "Ctrl+c"]
131help = ["?", "F1"]
132toggle_pause = ["p"]
133pause = ["s"]
134stop = ["x"]
135next_track = [">"]
136previous_track = ["<"]
137seek_forward = ["f"]
138seek_backward = ["b"]
139volume_up = ["+", "="]
140volume_down = ["-"]
141toggle_mute = ["m"]
142toggle_repeat = ["r"]
143toggle_random = ["z"]
144toggle_single = ["y"]
145toggle_consume = ["R"]
146update_database = ["U"]
147clear_queue = ["c"]
148next_screen = ["Tab"]
149previous_screen = ["Shift+Tab"]
150screen_queue = ["1"]
151screen_browser = ["2"]
152screen_playlists = ["3"]
153screen_library = ["4"]
154screen_tag_editor = ["5"]
155screen_visualizer = ["6"]
156screen_lyrics = ["7"]
157
158[keys.navigation]
159up = ["k", "Up"]
160down = ["j", "Down"]
161top = ["g", "Home"]
162bottom = ["G", "End"]
163page_up = ["PageUp"]
164page_down = ["PageDown"]
165half_page_up = ["Ctrl+u"]
166half_page_down = ["Ctrl+d"]
167left = ["h", "Left", "Backspace"]
168right = ["l", "Right"]
169activate = ["Enter"]
170toggle_mark = ["v", "Insert"]
171clear_marks = ["V"]
172search = ["/"]
173search_next = ["n"]
174search_previous = ["N"]
175add_to_queue = ["Space"]
176add_to_playlist = ["a"]
177
178[keys.queue]
179delete = ["d", "Delete"]
180move_item_up = ["K"]
181move_item_down = ["J"]
182shuffle_queue = ["Z"]
183save_queue = ["S"]
184jump_to_current = ["o"]
185toggle_lyrics_pane = ["L"]
186
187[keys.browser]
188
189[keys.playlists]
190delete = ["d", "Delete"]
191move_item_up = ["K"]
192move_item_down = ["J"]
193delete_playlist = ["D"]
194rename_playlist = ["R"]
195
196[keys.library]
197toggle_artist_tag = ["t"]
198
199[keys.tag_editor]
200save_tags = ["w"]
201revert_tags = ["u"]
202
203[keys.visualizer]
204cycle_visualizer = ["Space"]
205
206[keys.lyrics]
207reload_lyrics = ["F5"]
208
209[keys.popup]
210close = ["q", "Esc"]
211
212[keys.input]
213submit = ["Enter"]
214cancel = ["Esc"]
215backspace = ["Backspace"]
216delete_char = ["Delete"]
217delete_word = ["Ctrl+w"]
218cursor_left = ["Left"]
219cursor_right = ["Right"]
220cursor_home = ["Home", "Ctrl+a"]
221cursor_end = ["End", "Ctrl+e"]