dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 46001dc9f3e931c5bf9b06733709c0a6c10b3134
parent b0440c00c76d7f01cf7ba65d81c2a393e09af948
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed,  3 Jun 2020 20:25:09 +0100

quick script for controlling cmus

Diffstat:
Abin/bin/mus | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/bin/bin/mus b/bin/bin/mus @@ -0,0 +1,15 @@ +#!/bin/bash + +cmd=$1 + +if [ -z "$cmd" ] ; then + urxvtc -e dtach -A /tmp/mus cmus +elif [ "$cmd" == "p" ] ; then + /usr/bin/cmus-remote -u +elif [ "$cmd" == "n" ] ; then + /usr/bin/cmus-remote -n +elif [ "$cmd" == "s" ] ; then + /usr/bin/cmus-remote -s +elif [ "$cmd" == "song" ] ; then + /usr/bin/notify-send -u 'normal' "$(cmus-remote -Q | grep -E "tag artist |tag album |tag title " | awk '{$1=""; print $0}')" +fi