~yerinalexey/dotfiles

ref: 144a38b0aa0a39003633d53b77fe4e3ca29c054b dotfiles/scripts/playerctl-mod -rwxr-xr-x 259 bytes
144a38b0Alexey Yerin river,update-volume: fix old wob crashes 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Wrapper around playerctl to use player selected by player-menu

player="$(cat /tmp/player-name 2>/dev/null)"

if [ -z "$player" ]; then
	player="$(playerctl -l | head -1)"
	printf "%s" "$player" > /tmp/player-name
fi

playerctl -p "$player" "$@"