mirror of
https://github.com/figsoda/mmtc
synced 2024-11-26 00:40:18 +00:00
61 lines
2.1 KiB
Text
61 lines
2.1 KiB
Text
Config(
|
|
layout: Rows([
|
|
Fixed(1, Columns([
|
|
Ratio(12, Textbox(Text("Title"))),
|
|
Ratio(10, Textbox(Text("Artist"))),
|
|
Ratio(10, Textbox(Text("Album"))),
|
|
Ratio(1, Textbox(Text("Time"))),
|
|
])),
|
|
Min(0, Queue([
|
|
Column(
|
|
item: Ratio(12, QueueTitle),
|
|
style: [Fg(Indexed(117))],
|
|
selected_style: [Fg(Black), Bg(Indexed(117)), Bold],
|
|
),
|
|
Column(
|
|
item: Ratio(10, QueueArtist),
|
|
style: [Fg(Indexed(111))],
|
|
selected_style: [Fg(Black), Bg(Indexed(111)), Bold],
|
|
),
|
|
Column(
|
|
item: Ratio(10, QueueAlbum),
|
|
style: [Fg(Indexed(105))],
|
|
selected_style: [Fg(Black), Bg(Indexed(105)), Bold],
|
|
),
|
|
Column(
|
|
item: Ratio(1, QueueDuration),
|
|
style: [Fg(Indexed(177))],
|
|
selected_style: [Fg(Black), Bg(Indexed(177)), Bold],
|
|
),
|
|
])),
|
|
Fixed(1, Columns([
|
|
Min(0, Textbox(If(Not(Stopped), Parts([
|
|
If(Playing, Text("[playing: "), Text("[paused: ")),
|
|
CurrentElapsed,
|
|
Text("/"),
|
|
CurrentDuration,
|
|
Text("] "),
|
|
If(TitleExist,
|
|
Parts([
|
|
CurrentTitle,
|
|
If(ArtistExist, Parts([
|
|
Text(" - "),
|
|
CurrentArtist,
|
|
If(AlbumExist, Parts([
|
|
Text(" - "),
|
|
CurrentAlbum,
|
|
])),
|
|
])),
|
|
]),
|
|
CurrentFile,
|
|
)
|
|
])))),
|
|
Fixed(12, TextboxR(Parts([
|
|
If(Repeat, Text("[@]")),
|
|
If(Random, Text("[#]")),
|
|
If(Single, Text("[^]"), If(Oneshot, Text("[!]"))),
|
|
If(Consume, Text("[*]")),
|
|
]))),
|
|
])),
|
|
]),
|
|
)
|