blob: 2b535c061403b92a43332163af9bd3cb53d9ebcc (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
LANG=C phymem=$(free -m | awk '/^Mem:/{print $2}')
igvmem=$(($phymem / 3))
archlinux-java-run --min 21 --max 21 -- \
-Xmx${igvmem}m \
@"/usr/share/java/igv/igv.args" \
-Dapple.laf.useScreenMenuBar=true \
-Djava.net.preferIPv4Stack=true \
--module-path=/usr/share/java/igv/lib \
--module=org.igv/org.broad.igv.ui.Main "$@"
|