diff options
author | Mateja <mail@matejamaric.com> | 2020-11-25 23:06:42 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-25 23:06:42 +0100 |
commit | b95adef425e3dab8abd0f9cff73dca1eb049b075 (patch) | |
tree | 2efea2d8878cea4ffbce2871586958012aea6a21 /scripts/mpd_show | |
parent | 10cabf9065964bfe6a3c163f5b45a7ec12f11b9e (diff) | |
download | dotfiles-b95adef425e3dab8abd0f9cff73dca1eb049b075.tar.gz dotfiles-b95adef425e3dab8abd0f9cff73dca1eb049b075.zip |
programs now managed by debian-setup
Diffstat (limited to 'scripts/mpd_show')
-rwxr-xr-x | scripts/mpd_show | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mpd_show b/scripts/mpd_show new file mode 100755 index 0000000..8d14a1d --- /dev/null +++ b/scripts/mpd_show @@ -0,0 +1,6 @@ +#!/bin/sh + +raw="$(mpc)" +song=$(echo "$raw" | sed -n '1p') +time=$(echo "$raw" | sed -n '2p') +notify-send "$song" "$time" |