citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

vmclose (260B)


      1 #!/usr/bin/env bash
      2 
      3 VM=${1:-razoredge}
      4 
      5 # pause vms
      6 if type VBoxManage > /dev/null; then
      7     if VBoxManage controlvm "$VM" savestate
      8     then
      9         notify-send "$VM saved"
     10     else
     11         notify-send "$VM already saved"
     12     fi
     13 fi
     14 
     15 sleep 5
     16 pkill VirtualBox