mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-04 10:14:34 +02:00
Revert "music: replace Spotify by Deezer"
This reverts commit 7086a909cf
.
This commit is contained in:
parent
ad72179d7a
commit
8235201167
7 changed files with 29 additions and 4 deletions
|
@ -48,7 +48,6 @@ application_icons = {
|
|||
"chromium": icon(3, ""),
|
||||
"d-feet": icon(2, ""),
|
||||
"darktable": icon(2, ""),
|
||||
"deezer": icon(3, ""),
|
||||
"discord": icon(3, ""),
|
||||
"draw.io": icon(2, ""),
|
||||
"easyeffects": icon(2, ""),
|
||||
|
|
|
@ -45,7 +45,7 @@ media-playback-stop Stop
|
|||
go-next Next track
|
||||
audio-input-microphone Toggle microphone
|
||||
multimedia-volume-control Open mixer panel
|
||||
dev.aunetx.deezer Open Deezer
|
||||
com.spotify.Client Open Spotify
|
||||
EOF
|
||||
|
||||
# Player status
|
||||
|
@ -68,7 +68,7 @@ EOF
|
|||
5) $playerctl next ;;
|
||||
6) ~/.config/i3/bin/toggle-mute source ;;
|
||||
7) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
||||
8) i3-msg '[class="Deezer"] focus' || i3-msg exec gtk-launch dev.aunetx.deezer ;;
|
||||
8) i3-msg '[class="Spotify"] focus' || i3-msg exec gtk-launch com.spotify.Client ;;
|
||||
esac >&2
|
||||
;;
|
||||
esac
|
||||
|
|
9
bin/spotify-clean
Executable file
9
bin/spotify-clean
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Kill all spotify streams, except the most recent one. We need to use
|
||||
# the serial to know which one this is as ID are not monotonous.
|
||||
|
||||
pw-dump \
|
||||
| jq '.[]|select(.type == "PipeWire:Interface:Client" and .info.props."application.name" == "spotify").id' \
|
||||
| head -n-1 \
|
||||
| xargs -trn1 pw-cli destroy
|
Loading…
Add table
Add a link
Reference in a new issue