nixos-configs/eww/scripts/music/control.sh
2023-05-28 18:05:51 -04:00

13 lines
183 B
Bash
Executable file

#!/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