2020-10-30 16:21:35 +00:00
|
|
|
Config(
|
2020-11-02 22:12:19 +00:00
|
|
|
address: "127.0.0.1:6600",
|
2020-11-09 21:24:30 +00:00
|
|
|
clear_query_on_play: false,
|
2020-11-02 22:12:19 +00:00
|
|
|
cycle: false,
|
|
|
|
jump_lines: 24,
|
|
|
|
seek_secs: 5.0,
|
2020-11-05 00:07:22 +00:00
|
|
|
search_fields: SearchFields(
|
|
|
|
file: false,
|
|
|
|
title: true,
|
|
|
|
artist: true,
|
|
|
|
album: true,
|
|
|
|
),
|
2020-11-02 22:12:19 +00:00
|
|
|
ups: 1.0,
|
2020-10-30 16:21:35 +00:00
|
|
|
layout: Rows([
|
|
|
|
Fixed(1, Columns([
|
2020-11-02 21:13:59 +00:00
|
|
|
Ratio(12, Textbox(Styled([Fg(Indexed(122)), Bold], Text("Title")))),
|
|
|
|
Ratio(10, Textbox(Styled([Fg(Indexed(158)), Bold], Text("Artist")))),
|
|
|
|
Ratio(10, Textbox(Styled([Fg(Indexed(194)), Bold], Text("Album")))),
|
|
|
|
Ratio(1, Textbox(Styled([Fg(Indexed(230)), Bold], Text("Time")))),
|
2020-10-30 16:21:35 +00:00
|
|
|
])),
|
2020-11-01 19:29:39 +00:00
|
|
|
Min(0, Queue([
|
|
|
|
Column(
|
2020-11-03 13:11:41 +00:00
|
|
|
item: Ratio(12, If(QueueCurrent,
|
|
|
|
Styled([Italic], QueueTitle),
|
|
|
|
QueueTitle,
|
|
|
|
)),
|
2020-11-02 21:13:59 +00:00
|
|
|
style: [Fg(Indexed(75))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(75)), Bold],
|
2020-11-01 19:29:39 +00:00
|
|
|
),
|
|
|
|
Column(
|
2020-11-03 13:11:41 +00:00
|
|
|
item: Ratio(10, If(QueueCurrent,
|
|
|
|
Styled([Italic], QueueArtist),
|
|
|
|
QueueArtist,
|
|
|
|
)),
|
2020-11-01 19:29:39 +00:00
|
|
|
style: [Fg(Indexed(111))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(111)), Bold],
|
|
|
|
),
|
|
|
|
Column(
|
2020-11-03 13:11:41 +00:00
|
|
|
item: Ratio(10, If(QueueCurrent,
|
|
|
|
Styled([Italic], QueueAlbum),
|
|
|
|
QueueAlbum,
|
|
|
|
)),
|
2020-11-02 21:13:59 +00:00
|
|
|
style: [Fg(Indexed(147))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(147)), Bold],
|
2020-11-01 19:29:39 +00:00
|
|
|
),
|
|
|
|
Column(
|
2020-11-03 13:11:41 +00:00
|
|
|
item: Ratio(1, If(QueueCurrent,
|
|
|
|
Styled([Italic], QueueDuration),
|
|
|
|
QueueDuration,
|
|
|
|
)),
|
2020-11-02 21:13:59 +00:00
|
|
|
style: [Fg(Indexed(183))],
|
|
|
|
selected_style: [Fg(Black), Bg(Indexed(183)), Bold],
|
2020-11-01 19:29:39 +00:00
|
|
|
),
|
|
|
|
])),
|
2020-11-01 19:56:46 +00:00
|
|
|
Fixed(1, Columns([
|
2020-11-04 17:19:22 +00:00
|
|
|
Min(0, Textbox(Styled([Bold], If(Searching,
|
|
|
|
Parts([
|
|
|
|
Styled([Fg(Indexed(113))], Text("Searching: ")),
|
|
|
|
Styled([Fg(Indexed(185))], Query),
|
|
|
|
]),
|
|
|
|
If(Not(Stopped), Parts([
|
|
|
|
Styled([Fg(Indexed(113))], Parts([
|
|
|
|
If(Playing, Text("[playing: "), Text("[paused: ")),
|
|
|
|
CurrentElapsed,
|
|
|
|
Text("/"),
|
|
|
|
CurrentDuration,
|
|
|
|
Text("] "),
|
|
|
|
])),
|
|
|
|
If(TitleExist,
|
|
|
|
Parts([
|
|
|
|
Styled([Fg(Indexed(149))], CurrentTitle),
|
|
|
|
If(ArtistExist, Parts([
|
2020-11-02 21:13:59 +00:00
|
|
|
Styled([Fg(Indexed(216))], Text(" ◆ ")),
|
2020-11-04 17:19:22 +00:00
|
|
|
Styled([Fg(Indexed(185))], CurrentArtist),
|
|
|
|
If(AlbumExist, Parts([
|
|
|
|
Styled([Fg(Indexed(216))], Text(" ◆ ")),
|
|
|
|
Styled([Fg(Indexed(221))], CurrentAlbum),
|
|
|
|
])),
|
2020-11-01 19:56:46 +00:00
|
|
|
])),
|
2020-11-04 17:19:22 +00:00
|
|
|
]),
|
|
|
|
Styled([Fg(Indexed(185))], CurrentFile),
|
|
|
|
),
|
|
|
|
])),
|
|
|
|
)))),
|
2020-11-13 00:58:01 +00:00
|
|
|
Fixed(7, TextboxR(Styled([Fg(Indexed(81))], Parts([
|
2020-11-02 21:13:59 +00:00
|
|
|
Text("["),
|
|
|
|
If(Repeat, Text("@")),
|
|
|
|
If(Random, Text("#")),
|
|
|
|
If(Single, Text("^"), If(Oneshot, Text("!"))),
|
|
|
|
If(Consume, Text("*")),
|
|
|
|
Text("]"),
|
2020-11-01 19:56:46 +00:00
|
|
|
])))),
|
|
|
|
])),
|
2020-10-30 16:21:35 +00:00
|
|
|
]),
|
|
|
|
)
|