Files
RaspberryPi-Monitor_Bash/dodatki/cusm.sh
T
2020-10-10 11:56:47 +02:00

16 lines
713 B
Bash

#!/bin/bash
# Muzyka z CMUS
artist=$(cmus-remote -Q | grep 'tag artist' | cut -d ' ' -f 3-)
album=$(cmus-remote -Q | grep 'tag album ' | cut -d ' ' -f 3-)
title=$(cmus-remote -Q | grep 'tag title' | cut -d ' ' -f 3-)
file=$(cmus-remote -Q | grep 'file' | cut -d ' ' -f 2-)
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo " Obecnie grane na Console Music Player"
echo " Tytul: $title"
echo " Album: $album"
echo " Autor: $artist"
echo " Plik: $file"
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo " Skrypt napisany przez: Krzysztof 'KrzysiekSiemv' Smaga (https://github.com/KrzysiekSiemv)"