From 2b300e6d6b922b98a2129d1300f439f6a1bb22c6 Mon Sep 17 00:00:00 2001 From: Daniel Doza Date: Mon, 28 Jan 2019 10:56:48 +0100 Subject: [PATCH] mpc script for statusbar --- .config/i3blocks/config | 4 ++++ .scripts/statusbar/mpc | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100755 .scripts/statusbar/mpc diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 3d64eed..f0875fe 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -2,6 +2,9 @@ command=~/.scripts/statusbar/$BLOCK_NAME separator_block_width=25 markup=pango +[mpc] +interval=10 + [internet] interval=30 @@ -11,3 +14,4 @@ interval=5 [clock] interval=30 label=📅 + diff --git a/.scripts/statusbar/mpc b/.scripts/statusbar/mpc new file mode 100755 index 0000000..5141c09 --- /dev/null +++ b/.scripts/statusbar/mpc @@ -0,0 +1,7 @@ +#!/bin/bash + +mpc -f '%artist% - %title%' | sed 1q + +case $BLOCK_BUTTON in + 1) "$TERMINAL" -e ncmpcpp ;; +esac