summaryrefslogtreecommitdiff
path: root/play-pause.sh
diff options
context:
space:
mode:
Diffstat (limited to 'play-pause.sh')
-rwxr-xr-xplay-pause.sh10
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
+