nixos-configs/eww/scripts/music/control.sh

14 lines
183 B
Bash
Raw Normal View History

2023-05-28 18:05:51 -04:00
#!/usr/bin/env bash
if [[ $1 == "prev" ]]; then
playerctl previous
fi
if [[ $1 == "play-pause" ]]; then
playerctl play-pause
fi
if [[ $1 == "next" ]]; then
playerctl next
fi