summaryrefslogtreecommitdiff
path: root/users/ryan/linux/waybar/modules/check-for-music.sh
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
commit0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch)
tree6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/linux/waybar/modules/check-for-music.sh
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/linux/waybar/modules/check-for-music.sh')
-rwxr-xr-xusers/ryan/linux/waybar/modules/check-for-music.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/ryan/linux/waybar/modules/check-for-music.sh b/users/ryan/linux/waybar/modules/check-for-music.sh
new file mode 100755
index 0000000..3b735a2
--- /dev/null
+++ b/users/ryan/linux/waybar/modules/check-for-music.sh
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3if [[ $(playerctl metadata --format '{{lc(status)}}' | grep playing) -eq 0 ]]; then
4 exit 0
5else
6 exit 1
7fi