diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-09-07 23:50:02 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-09-07 23:50:02 -0400 |
commit | f9f087f055dcca066b74da159a448ed227f26e7e (patch) | |
tree | ba1f6fbe3369352cb76690209286dcbe1cea3fb0 /home-config/waybar/modules/check-for-music.sh | |
parent | e8351e69e99e35c42e9a04551e2c3d7aabf870da (diff) |
added music info to waybar
Diffstat (limited to 'home-config/waybar/modules/check-for-music.sh')
-rwxr-xr-x | home-config/waybar/modules/check-for-music.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home-config/waybar/modules/check-for-music.sh b/home-config/waybar/modules/check-for-music.sh new file mode 100755 index 0000000..3b735a2 --- /dev/null +++ b/home-config/waybar/modules/check-for-music.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [[ $(playerctl metadata --format '{{lc(status)}}' | grep playing) -eq 0 ]]; then | ||
4 | exit 0 | ||
5 | else | ||
6 | exit 1 | ||
7 | fi | ||