spotify-player: like/navigate the playing track, not the selected one
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
c00a1f85bc
commit
2a64c712a6
1 changed files with 30 additions and 0 deletions
|
|
@ -100,6 +100,36 @@ in
|
||||||
# Redirect URI registered: http://127.0.0.1:8989/login
|
# Redirect URI registered: http://127.0.0.1:8989/login
|
||||||
client_id = "265506bc7bbd4032bf0fee708b321d3e";
|
client_id = "265506bc7bbd4032bf0fee708b321d3e";
|
||||||
};
|
};
|
||||||
|
# The home-manager module only writes keymap.toml when `keymaps` is
|
||||||
|
# non-empty, so `actions` alone would silently emit nothing. Restating a
|
||||||
|
# default binding is the cheapest way to make the file exist.
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
command = "ShowActionsOnCurrentTrack";
|
||||||
|
key_sequence = "a";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
# Actions default to the *selected* item, which is useless when listening
|
||||||
|
# along to someone else's playback — the track was never selected, so
|
||||||
|
# liking it means finding it by hand. target = "PlayingTrack" acts on
|
||||||
|
# whatever is actually playing.
|
||||||
|
actions = [
|
||||||
|
{
|
||||||
|
action = "ToggleLiked";
|
||||||
|
key_sequence = "L";
|
||||||
|
target = "PlayingTrack";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "GoToArtist";
|
||||||
|
key_sequence = "g P";
|
||||||
|
target = "PlayingTrack";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "GoToAlbum";
|
||||||
|
key_sequence = "g B";
|
||||||
|
target = "PlayingTrack";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Upstream ships no .desktop file (TUI only), so the launcher can't find it.
|
# Upstream ships no .desktop file (TUI only), so the launcher can't find it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue