summaryrefslogtreecommitdiff
path: root/play-pause.sh
blob: 54ca7eaa9d8004d660aaae6968fb9e2cba3e8524 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if hyprctl activewindow | grep 'class: zen-alpha' > /dev/null; then
    playerctl -p spotify play-pause
elif [[ "$(playerctl status firefox)" == "Playing" ]]; then
    playerctl --all-players pause
else
    playerctl -p spotify play-pause
fi