Skip to content

Commit fced2ee

Browse files
jlo62ErikReider
andauthored
Add playerctl support (#108)
* rebase off main * fix 2 unused errors * update to GTK4 * add cargo.lock * resolve merge conflict #2 * cargo fmt * implement Arc for config to avoid cloning often * cargo fmt * Add default config examples * add config files * fix cargo fmt because "version" is deprecated and has been superseeded by "style_edition". 2021 should be equivelent to the onle "One" * resolve conversations * add track_list stuff and fallback to delaying * d * cargo fmt * get rid of ghost changes while rebasing * capitalize to resolve compile issues * Fixed my nits --------- Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
1 parent 993180b commit fced2ee

23 files changed

+802
-205
lines changed

Cargo.lock

Lines changed: 379 additions & 189 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ blight = "0.7.0"
4242
anyhow = "1.0.75"
4343
thiserror = "1.0.49"
4444
async-channel = "2.3.1"
45+
mpris = "2.0.1"
46+
runtime-format = "0.1.3"
47+
strfmt = "0.2.4"

data/config/backend.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[input]

data/config/config.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[client]
2+
## style file for the OSD
3+
# style = /etc/xdg/swayosd/style.css
4+
5+
## on which height to show the OSD
6+
# top_margin = 0.85
7+
8+
## The maximum volume that can be reached in %
9+
# max_volume = 150
10+
11+
## show percentage on the right of the OSD
12+
# show_percentage = true
13+
14+
## set format for the media player OSD
15+
# playerctl_format = "{artist} - {title}"
16+
## Available values:
17+
## artist, albumArtist, title, album, trackNumber, discNumber, autoRating
18+
19+
[server]
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading
Lines changed: 2 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)