mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-30 17:46:59 +00:00
Skip sound start program launching flag
This commit is contained in:
parent
827b6c406b
commit
9b3ab03ea3
@ -16,6 +16,15 @@ function pulseHack() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# arg parser
|
||||||
|
for arg in "$@"
|
||||||
|
do
|
||||||
|
# Skip commands for i3wm
|
||||||
|
if [[ $arg == *"-s"* ]]; then
|
||||||
|
skipi3=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Close any active audio
|
# Close any active audio
|
||||||
killPulse
|
killPulse
|
||||||
|
|
||||||
@ -29,5 +38,8 @@ pulseHack
|
|||||||
sh ~/.config/scripts/start-es-8.sh
|
sh ~/.config/scripts/start-es-8.sh
|
||||||
|
|
||||||
# Start up programs that use audio
|
# Start up programs that use audio
|
||||||
|
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 10; exec google-play-music-desktop-player'
|
||||||
sleep .1 && i3-msg 'workspace 5; exec firefox'
|
sleep .1 && i3-msg 'workspace 5; exec firefox'
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user