Let's say I want two desktop icons, one to launch firefox, the other to launch the Logout/Suspend/Reboot/Hibernate/Shutdown dialog.
First we need to install idesk:
Open up a terminal...
Code: Select all
sudo apt-get install idesk
Code: Select all
mousepad ~/.ideskrc
Code: Select all
table Config
FontName: tahoma
FontSize: 8
FontColor: #ffffff
Locked: false
Transparency: 150
HighContrast: true
Shadow: true
ShadowColor: #000000
ShadowX: 1
ShadowY: 2
Bold: false
ClickDelay: 300
IconSnap: true
SnapWidth: 32
SnapHeight: 32
SnapOrigin: BottomRight
SnapShadow: true
SnapShadowTrans: 200
CaptionOnHover: false
end
table Actions
Lock: control right doubleClk
Reload: middle doubleClk
Drag: left hold
EndDrag: left singleClk
Execute[0]: left doubleClk
Execute[1]: right doubleClk
end
Now we need a directory to store the actual icons:
Code: Select all
mkdir ~/.idesktop
Code: Select all
mousepad ~/.idesktop/firefox.lnk
Code: Select all
table Icon
Caption: Mozilla Firefox
Command: firefox
Icon: /usr/share/pixmaps/firefox-3.5.png
Width: 32
Height: 32
X: 32
Y: 32
end
Our next icon launches the "ciao" script (which brings up the Logout/Suspend/Reboot/Hibernate/Shutdown dialog):
Code: Select all
mousepad ~/.idesktop/quit.lnk
Code: Select all
table Icon
Caption: Quit Fluxbox
Command: ciao
Icon: /usr/share/icons/Minty/scalable/actions/application-exit.png
Width: 32
Height: 32
X: 32
Y: 96
end
We need idesk to start whenever we start up:
Code: Select all
mousepad ~/.fluxbox/startup
Code: Select all
#-----------------------------------------------------------------
# ADD APPLICATIONS YOU WISH TO LAUNCH AT LOGIN IN THIS SECTION
# MAKE SURE TO ADD THE "&" SYMBOL TO THE END OF EACH COMMAND
#-----------------------------------------------------------------
Code: Select all
idesk &
Reboot and you will have the two icons on your desktop.