Skip to content

Commit

Permalink
mpc script for statusbar
Browse files Browse the repository at this point in the history
  • Loading branch information
doza-daniel committed Jan 28, 2019
1 parent 152b1bd commit 2b300e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .config/i3blocks/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,9 @@ command=~/.scripts/statusbar/$BLOCK_NAME
separator_block_width=25
markup=pango

[mpc]
interval=10

[internet]
interval=30

Expand All @@ -11,3 14,4 @@ interval=5
[clock]
interval=30
label=📅

7 changes: 7 additions & 0 deletions .scripts/statusbar/mpc
Original file line number Diff line number Diff line change
@@ -0,0 1,7 @@
#!/bin/bash

mpc -f '%artist% - %title%' | sed 1q

case $BLOCK_BUTTON in
1) "$TERMINAL" -e ncmpcpp ;;
esac

0 comments on commit 2b300e6

Please sign in to comment.