mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-08 18:13:52 +00:00
144 lines
4 KiB
Plaintext
144 lines
4 KiB
Plaintext
#![enable(implicit_some)]
|
|
#![enable(unwrap_newtypes)]
|
|
#![enable(unwrap_variant_newtypes)]
|
|
(
|
|
address: "127.0.0.1:6600",
|
|
password: None,
|
|
theme: None,
|
|
cache_dir: None,
|
|
on_song_change: None,
|
|
volume_step: 5,
|
|
scrolloff: 0,
|
|
wrap_navigation: false,
|
|
enable_mouse: false,
|
|
status_update_interval_ms: 1000,
|
|
select_current_song_on_change: false,
|
|
album_art: (
|
|
method: Auto,
|
|
max_size_px: (width: 600, height: 600),
|
|
),
|
|
keybinds: (
|
|
global: {
|
|
":": CommandMode,
|
|
",": VolumeDown,
|
|
"s": Stop,
|
|
".": VolumeUp,
|
|
"c": ToggleSingle,
|
|
"<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,
|
|
"x": ToggleRandom,
|
|
">": NextTrack,
|
|
"<": PreviousTrack,
|
|
"f": SeekForward,
|
|
"v": ToggleConsume,
|
|
"p": TogglePause,
|
|
"z": ToggleRepeat,
|
|
"b": SeekBack,
|
|
"~": ShowHelp,
|
|
"I": ShowCurrentSongInfo,
|
|
"O": ShowOutputs,
|
|
},
|
|
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,
|
|
"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,
|
|
},
|
|
),
|
|
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"),
|
|
(value: "filename", label: "Filename"),
|
|
(value: "genre", label: "Genre"),
|
|
],
|
|
),
|
|
tabs: [
|
|
(
|
|
name: "Queue",
|
|
border_type: None,
|
|
pane: Split(
|
|
direction: Horizontal,
|
|
panes: [(size: "40%", pane: Pane(AlbumArt)), (size: "60%", pane: Pane(Queue))],
|
|
),
|
|
),
|
|
(
|
|
name: "Directories",
|
|
border_type: None,
|
|
pane: Pane(Directories),
|
|
),
|
|
(
|
|
name: "Artists",
|
|
border_type: None,
|
|
pane: Pane(Artists),
|
|
),
|
|
(
|
|
name: "Album Artists",
|
|
border_type: None,
|
|
pane: Pane(AlbumArtists),
|
|
),
|
|
(
|
|
name: "Albums",
|
|
border_type: None,
|
|
pane: Pane(Albums),
|
|
),
|
|
(
|
|
name: "Playlists",
|
|
border_type: None,
|
|
pane: Pane(Playlists),
|
|
),
|
|
(
|
|
name: "Search",
|
|
border_type: None,
|
|
pane: Pane(Search),
|
|
),
|
|
],
|
|
)
|
|
|