I go through a lot of CDs & DVDs, and constantly reaching over to push that little button on the front of the CD/DVD drive is rather annoying. I do not have one of those nifty keyboards that has those media buttons. So, I looked for a way to open and close my drawer from the keyboard, or with the mouse. And I found a few ways to do it.
Using a keyboard shortcut
- Go to System > Preferences > Keyboard Shortcuts
- Find the entry for Eject. It’s under the Sound group.
- Click with the left or right mouse button on Eject
- You’ll see in the right hand column it now says New accelerator…
- Now you just hit the keyboard shortcut you want to use. You’ll notice that I have F12, and for that you just hit the F12 key
- If you want to have a multiple key combination, that’s fine too. For example, you can hit [CTRL] + [ALT] + [INSERT], and now every time you hit those three keys, your CD drawer will open, or close.
Adding a custom launcher to the Desktop or Panel
- Right click on a panel and select Add to Panel…
- Select Custom Application Launcher and click the Add button
- Now you’ll have a little box that looks like the one pictured below, only emptier
- For the Command, type in:
eject -T - Give it a name, and a description if you like.
- Click on the icon on the left and you’ll be able to select your icon from a list
- Click OK, and enjoy opening and closing the CD/DVD drawer with a click of your mouse


Hey Eli did this and used F12 for the shortcut. Worked like a charm!!!