dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4c8bb37a656a59b79160e44762101b6c71e46575
parent 960361e4b4dc43207df4804de782f79d1c6a6a74
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 31 Oct 2019 13:34:38 +0300

add time to the script as well

Diffstat:
M.local/bin/getmpd | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/getmpd b/.local/bin/getmpd @@ -1,3 +1,3 @@ #!/usr/bin/env sh -# Stolen from Luke Smith -mpc -f "[[%artist% - ]%title%]|[%file%]" 2>/dev/null | grep -v "volume:" | head -n 1 +mpc -f "[[%artist% - ]%title%]|[%file%]" 2>/dev/null | grep -v "volume:" | head -n 1 | tr '\n' ' ' +mpc | awk 'NR==2' | awk '{print $3}'