From 91c76659fce741e1b6235753dce8ed7473915173 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 26 Aug 2024 11:04:17 +0200 Subject: [PATCH] fix spotify --- .config/waybar/config.jsonc | 4 ++-- .config/waybar/spotify-meta.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .config/waybar/spotify-meta.sh diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 781d477..ceda04b 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -66,9 +66,9 @@ // "format-alt": "{alt}", }, "custom/spotify": { - "exec": "bash ~/.config/waybar/album_art.sh", + "exec": "bash ~/.config/waybar/spotify-meta.sh", "format": "{}", - "return-type": "json", + //"return-type": "json", "on-click": "playerctl play-pause", "interval": 10 }, diff --git a/.config/waybar/spotify-meta.sh b/.config/waybar/spotify-meta.sh new file mode 100644 index 0000000..f213f5e --- /dev/null +++ b/.config/waybar/spotify-meta.sh @@ -0,0 +1,2 @@ +#!/bin/bash +playerctl metadata --format "{{artist}} - {{title}}" \ No newline at end of file