autocrosser
February 24th, 2008, 02:20 AM
I have a HowTo to open/close CD drives with one key & someone asked me about having the media-eject.png show like the eject-only keyboard default.
My script looks like:
#!/bin/bash
tray_status=`cat .tray_status0.sh`
if [ "$tray_status" == "Closed" ]
then
eject /dev/scd0
echo "Open" > .tray_status0.sh
elif [ "$tray_status" == "Open" ]
then
eject -t /dev/scd0
echo "Closed" > .tray_status0.sh
else
eject /dev/scd0
echo "Open" > .tray_status0.sh
fi
Ideas on how to display the .png during tray open/close?
My script looks like:
#!/bin/bash
tray_status=`cat .tray_status0.sh`
if [ "$tray_status" == "Closed" ]
then
eject /dev/scd0
echo "Open" > .tray_status0.sh
elif [ "$tray_status" == "Open" ]
then
eject -t /dev/scd0
echo "Closed" > .tray_status0.sh
else
eject /dev/scd0
echo "Open" > .tray_status0.sh
fi
Ideas on how to display the .png during tray open/close?