diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:11:36 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:11:36 +0800 |
| commit | dec3fb3dedac4db029b8f5d99077b79ae159cb88 (patch) | |
| tree | 2bcf61eba61320634646e6cf32491b0b9e04674a /play-pause.sh | |
| parent | de643dda9debd8c69a00a82501d2a9f574414f59 (diff) | |
add: play-pause.sh
Diffstat (limited to 'play-pause.sh')
| -rwxr-xr-x | play-pause.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/play-pause.sh b/play-pause.sh new file mode 100755 index 0000000..54ca7ea --- /dev/null +++ b/play-pause.sh @@ -0,0 +1,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 + |
