dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit e354ddf6468a27e10742f49341bad754cd5de088
parent ebf7e0dcf098a8bf5a12b3cbf10cdfeaf8d68421
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed, 24 Jun 2020 17:14:23 -0400

Add cmus control script

Diffstat:
A.local/bin/cmus-control.sh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/.local/bin/cmus-control.sh b/.local/bin/cmus-control.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Starts cmus in a terminal window if it's not already running +# If it is running, passes the command given to the script to cmus-remote + +if ! pgrep -x cmus; then + "$TERMINAL" -e cmus +else + cmus-remote "$1" +fi