@sixwheeledbeast, how about making your app able to accept a command on the command line. Then we can all automate switching swap partitions using cron or alarmed or any other way we choose. What do you think?
sh /opt/flopswap/script/swapswitch.sh