From f0007b61952d1bea99a4c68920c0d0ba6f7f0cd7 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 20 Mar 2020 14:36:50 +0530 Subject: added ncmpcpp --- polybar/.config/polybar/cmus.sh | 20 -------------------- polybar/.config/polybar/config | 37 +++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 38 deletions(-) delete mode 100755 polybar/.config/polybar/cmus.sh (limited to 'polybar') diff --git a/polybar/.config/polybar/cmus.sh b/polybar/.config/polybar/cmus.sh deleted file mode 100755 index 7917d4c..0000000 --- a/polybar/.config/polybar/cmus.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -prepend_zero () { - seq -f "%02g" $1 $1 -} - -artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) - -if [[ $artist = *[!\ ]* ]]; then - song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) - position=$(cmus-remote -C status | grep position | cut -c 10-) - minutes1=$(prepend_zero $(($position / 60))) - seconds1=$(prepend_zero $(($position % 60))) - duration=$(cmus-remote -C status | grep duration | cut -c 10-) - minutes2=$(prepend_zero $(($duration / 60))) - seconds2=$(prepend_zero $(($duration % 60))) - echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" -else - echo -fi diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 8f9701d..8260bc9 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -35,7 +35,7 @@ font-0 = Hermit:style=medium:pixelsize=10;1 font-1 = FontAwesome:style=Regular:size=10;1 modules-left = pulseaudio battery date time bspwm modules-center = -modules-right = spotify cmus xwindow +modules-right = spotify mpd tray-position = right cursor-click = pointer cursor-scroll = ns-resize @@ -152,26 +152,26 @@ format =