If you want the eject button to load the tray too you can call this script from the config line of lircrc. I got it from the lineak mailing list. It's not very pretty but does the job. #!/bin/bash START=`date +%s` eject -t # Try closing first END=`date +%s` [ $START -eq $END ] && eject # Too fast, it was already closed