Compare commits

..

2 commits

Author SHA1 Message Date
7184e752c2 fix(ags player): fix track title not updating 2023-10-02 17:35:48 -04:00
b220ff889c chore: update flake.lock 2023-10-02 17:35:26 -04:00
2 changed files with 9 additions and 11 deletions

View file

@ -62,7 +62,7 @@ export const TitleLabel = (player, params) => Label({
truncate: 'end', truncate: 'end',
justification: 'left', justification: 'left',
className: 'title', className: 'title',
binds: [['label', player, 'trackTitle']], binds: [['label', player, 'track-title']],
}); });
export const ArtistLabel = (player, params) => Label({ export const ArtistLabel = (player, params) => Label({
@ -72,9 +72,7 @@ export const ArtistLabel = (player, params) => Label({
truncate: 'end', truncate: 'end',
justification: 'left', justification: 'left',
className: 'artist', className: 'artist',
connections: [[player, label => { binds: [['label', player, 'track-artists', a => a.join(', ') || '']],
label.label = player.trackArtists.join(', ') || '';
}]],
}); });
export const PlayerIcon = (player, { symbolic = true, ...params } = {}) => { export const PlayerIcon = (player, { symbolic = true, ...params } = {}) => {

View file

@ -220,11 +220,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1696261674, "lastModified": 1696261738,
"narHash": "sha256-CF/8elCzin2P6hwB32SKVEHDJLbdTZBebLhhCgCyYFk=", "narHash": "sha256-ujhtnd7vCZHJosOxTi4lgIyHA6iblYwXhx+ZS678fxw=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "fcab2a435899f3848bc814ac4784d29e3169ea0b", "rev": "b784931e678f907b1f1e41d04485fefd8a1faaf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -446,18 +446,18 @@
"flake": false, "flake": false,
"locked": { "locked": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"lastModified": 1695919988, "lastModified": 1696255886,
"narHash": "sha256-4RBgIZHaVqH0m1POnfzYRzwCWxifIKH4xQ0kCn2LGkA=", "narHash": "sha256-0KZfiqqREousitBgG1mkzKmmNX4tjOIWdbBm6MvRCjQ=",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "c2aa7fd965cb7ee8bed24f4122b720aca8f0fc1e", "rev": "5ef42e8e8adece098848fac53c721b6eb3818fc2",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "c2aa7fd965cb7ee8bed24f4122b720aca8f0fc1e", "rev": "5ef42e8e8adece098848fac53c721b6eb3818fc2",
"type": "gitlab" "type": "gitlab"
} }
}, },