From 9b3ab03ea33e73e061b0baa15161acc4e604481e Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Mon, 30 Dec 2019 12:24:17 -0500 Subject: [PATCH] Skip sound start program launching flag --- scripts/system-start-audio.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/system-start-audio.sh b/scripts/system-start-audio.sh index bccd1dc..baa3257 100644 --- a/scripts/system-start-audio.sh +++ b/scripts/system-start-audio.sh @@ -16,6 +16,15 @@ function pulseHack() { done } +# arg parser +for arg in "$@" +do + # Skip commands for i3wm + if [[ $arg == *"-s"* ]]; then + skipi3=true + fi +done + # Close any active audio killPulse @@ -29,5 +38,8 @@ pulseHack sh ~/.config/scripts/start-es-8.sh # Start up programs that use audio -sleep .1 && i3-msg 'workspace 10; exec google-play-music-desktop-player' -sleep .1 && i3-msg 'workspace 5; exec firefox' +if [ -z "$skipi3" ]; then + echo Opening i3wm sound workspaces + sleep .1 && i3-msg 'workspace 10; exec google-play-music-desktop-player' + sleep .1 && i3-msg 'workspace 5; exec firefox' +fi