From fe8b040960bcb1224b7c9b647601e84507a7d33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 22 Apr 2019 17:27:57 -0500 Subject: [PATCH] remove mediaplayer | bug restart sesion --- i3blocks.conf | 7 ------- scripts/mprish.sh | 21 --------------------- 2 files changed, 28 deletions(-) delete mode 100644 scripts/mprish.sh diff --git a/i3blocks.conf b/i3blocks.conf index fcfcb1a..9f7064d 100644 --- a/i3blocks.conf +++ b/i3blocks.conf @@ -38,13 +38,6 @@ markup=none # interval=5 # signal=10 -[mediaplayer] -label= -command=sh /home/$USER/.config/i3/scripts/mprish.sh -instance=audacious -interval=5 -signal=10 - # Volume indicator # # The first parameter sets the step (and units to display) diff --git a/scripts/mprish.sh b/scripts/mprish.sh deleted file mode 100644 index 54b78ca..0000000 --- a/scripts/mprish.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# Specifying the icon(s) in the script -# This allows us to change its appearance conditionally - -player_status=$(playerctl status 2> /dev/null) -if [[ $player_status == "Playing" || $player_status == "Paused" ]]; then - metadata="$(playerctl metadata artist) - $(playerctl metadata title)" -fi - -# Foreground color formatting tags are optional -if [[ $player_status == "Playing" ]]; then - # Orange when playing - echo "$metadata" -elif [[ $player_status == "Paused" ]]; then - # Greyed out info when paused - echo "$metadata" -else - # Greyed out icon when stopped - echo "" -fi