From 634cfeb24008a11c14ad910f85e93b103882ea78 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 25 Jan 2020 01:02:21 +0100 Subject: [PATCH] add: i3blocks mpd playing info --- .config/i3blocks/config | 4 ++++ bin/ext | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index ec46b44..2d5aded 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -8,6 +8,10 @@ separator_block_width=15 command=./mpc-current interval=persist +[mpd_playing] +command=mpc status | sed -n 2p | sed -e 's/].*(/] (/' +interval=1 + [mpd_volume] command=mpc volume | cut -d ":" -f 2 interval=1 diff --git a/bin/ext b/bin/ext index 16d3837..812b25f 100755 --- a/bin/ext +++ b/bin/ext @@ -5,7 +5,7 @@ if [ -f $1 ] ; then *.tar.bz2) tar xjf $1 ;; *.tar.gz) tar xzf $1 ;; *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; + *.rar) unrar x $1 ;; *.gz) gunzip $1 ;; *.tar) tar xf $1 ;; *.tbz2) tar xjf $1 ;;