From 4d6ade92df6fce8f9ce691e8a8e4e96d9d1a384a Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 23 Apr 2023 18:23:37 +0200 Subject: [PATCH] =?UTF-8?q?Suppression=20de=20l'int=C3=A9gration=20Spotify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/waybar-sway/config | 7 ------- config/waybar-sway/mediaplayer.sh | 7 ------- 2 files changed, 14 deletions(-) delete mode 100755 config/waybar-sway/mediaplayer.sh diff --git a/config/waybar-sway/config b/config/waybar-sway/config index 1bc72c9..e0feaa5 100644 --- a/config/waybar-sway/config +++ b/config/waybar-sway/config @@ -73,12 +73,5 @@ }, "on-click": "pavucontrol" }, - "custom/spotify": { - "format": " {}", - "max-length": 40, - "interval": 30, // Remove this if your script is endless and write in loop - "exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder - "exec-if": "pgrep spotify" - } } diff --git a/config/waybar-sway/mediaplayer.sh b/config/waybar-sway/mediaplayer.sh deleted file mode 100755 index 847de29..0000000 --- a/config/waybar-sway/mediaplayer.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -player_status=$(playerctl status 2> /dev/null) -if [ "$player_status" = "Playing" ]; then - echo "$(playerctl metadata artist) - $(playerctl metadata title)" -elif [ "$player_status" = "Paused" ]; then - echo " $(playerctl metadata artist) - $(playerctl metadata title)" -fi