The gui app mx-idesktool is intended to make common tasks easier. This Wiki entry covers more advanced topics taken for the most part from the README file in the installation folder. Use with caution, as MX-Fluxbox does not follow all defaults.
Idesk is program that draws desktop icons. Each icon will execute a shell command on a configurable action. The icons can be moved on the desktop by dragging them, and the icons will remember their positions on start-up. Oh yea, forgot there is cool eye-candy.
The icons must be PNG (.png) files.
Config file setup (.ideskrc)
To use Idesk, you must first setup your config file. Put something like this into into .ideskrc in your home directory:
Lock: control right doubleClk
Reload: middle doubleClk
Drag: left hold
EndDrag: left singleClk
Execute: left doubleClk
Execute: right doubleClk
-“FontName” is the name Font. Default is Arial.
- “FontSize” is the size Font. Default is 16.
- “ForeColor” is the Foreground color. Default is #000000 (black).
-“ToolTip.FontName” is the name Font for tooltip. Default is Arial.
- “ToolTip.FontSize” is the size Font for the tooltip. Default is 10.
- ToolTip.ForeColor” is the Foreground color for the tooltip window. Default is #FFFFFF (white).
- “ToolTip.BackColor” is the Background color for the tooltip window. Default is #FFFACD.
-“ToolTip.CaptionPlacement” defines the position for Image ToolTip Text. Valid values are: Top, Bottom, Left, Right.
-“ToolTip.CaptionOnHover” is a boolean (true/false) value. Setting it to true will make the icon’s tip text appear when the mouse hovers over an icon. False is the default behavior.
-“Locked” is boolean (true/false). Setting it to true disables the dragging movement.
-“Transparency” is between 0 (no glow effect) and 255 (invisible without a mouseover).
-“HighContrast” will draw a border around the text in the opposite colour if it is true. It will draw it in an arbitary colour if it “#aa00aa”, for example. And it will not draw anything at all if it is set to “false”.
-“Shadow” is boolean (true/false). Turning this on will draw a drop shadow of color ShadowColor behind the text. The shadow will be ShadowX pixels right and ShadowY pixels down (negative values will work). Both ShadowX and ShadowY default to 1.
-“Bold” is a boolean (true/false). Setting it to true will make your font bold.
-“Click Delay” is the number of milliseconds that represents a double-click.
-“SingleClick” is a boolean (true/false). Setting it to true makes a single-click execute the command associated with the icon. This also means that it is impossible to drag the icon either.
-“IconSnap” is a boolean (true/false). Setting it to true makes the icons snap to a grid defined by “SnapWidth” and “SnapHeight”. The icon will snap to the middle of the rectangle defined by “SnapWidth” and “SnapHeight”. So if “SnapWidth” = “SnapHeight” = 100, the center of the icon will by in multiples of 50: (50,50), or (50, 100), or (100, 100), or (250, 350)… You will want to make “SnapWidth” and “SnapHeight” greater than or equal to the size of the picture.
-“SnapWidth” is a positive integer, see description in “IconSnap”.
-“SnapHeight” is a positive integer, see description in “IconSnap”.
-“SnapOrigin” defines where the snap grip starts from. Valid values are:
TopLeft, TopRight, BottomLeft, BottomRight.
-“SnapShadow” is a boolean (true/false) value. Setting it to true will make a shadow of the icon appear where the icon will snap if the drag was released there. Turn “IconSnap” on and check this out, pretty cool effect.
-“SnapShadowTrans” is a integer between 0 (opaque) and 255 (invisible). It represents the transparency of the SnapShadow
-“CaptionPlacement” defines the position for Image Caption. Valid values are:
Top, Bottom, Left, Right.
-“CaptionOnHover” is a boolean (true/false) value. Setting it to true will make the icon’s caption only appear when the mouse hovers over an icon. False is the default behavior.
- “FillStyle” defines the icon appearance when the user gives click him. The icon back to normal form when the user release the mouse button. FillInvert is the default behavior.
- “Background.File” defines the background image for wallpaper. If the path is wrong or the image has a bad format then doesn’t put nothing. The image is set to original size only in tile center style (for now). This image remains although idesk program ins’t running. (Default: None).
- “Background.Delay” Set the image change time in minutes format. (Default: 0 min). Set 0 if you want to leave inactive the changer background system. Max value is 525600 min (forever I think).
- “Background.Source” Let you can define the folder where there are some images. If in the folder there aren’t images or the folder didn’t exist, then idesk looking for Background.File option. (Default: None).
- “Background.Mode” Is the display mode for the images, the possible values are: Stretch, Scale, Center, Fit o Mirror). (Default: Stretch).
- “Background.Color” Just apply when you set Center or Fit options for Background.Mode, the color will be set on corners and borders (Default: None, will be use the current pixmap).
- “CursorOver” defines the mouse cursor type when the mouse hovers over an icon. Valid values are:
Better Snap Explanation
. . . . . . |__________|__________|_______ . . . | | | | | | y | | | | | | | | | [> |__________|__________|________ . . . | x | |
This is the bottom left of the desktop (SnapOrigin: BottomLeft)
X represents the snap width
Y represents the snap height
Snap origin only describes which corner of the screen
So basically set snap width to the width of the “box” you want the icon contained in and set snap height to the height of the “box” you want the icon contained in.
The icon will snap to the middle of that box specified by snap width and snap height. You will typically want the width and heihgt to be a bit larger than the width and height of the icons (make the height bigger if you use a caption).
In the Action table 5 different actions can be configured.
Lock: Disables icon dragging to prevent accidental movement. Reload: Reloads all of the config options and gets a new background. Drag: Puts the icon in drag mode. Icon follows cursor. EndDrag: End the drag mode, icon will be positioned at the cursor. Execute[i]: Executes the ith icon command. So the Execute action is the default action and run Command (in the icon config file), Execute runs Command and so forth.
The options for each command are as follows:
<shift> <control> <alt> [Button] [ClickType] [Button] = left, middle, or right (more than one is allowed) [ClickType] = singleClk, doubleClk, tripleClk, or hold
The default settings, should be self explanitory. Lock: right doubleClk Reload: middle doubleClk Drag: left hold <== Drag starts when left button is pressed. EndDrag: left singleClk <== Drag ends when left button is released. Execute: left doubleClk Other examples Left single click while holding shift on the keyboard Execute: shift left singleClk Left double click while holding down the right mouse button. Execute: left doubleClk right hold And for those with too many fingers, middle double click while holding down the left and right mouse buttons, and control, alt, and shift on the keyboard. Execute: control shift alt left hold middle doubleClk right hold Notes: For the Drag action I reccomend only doing button holds and for the EndDrag I recommend using single clicks. This way the icon begins dragging as soon as you press the button and stops dragging as soon as you release the button. Using other actions should work as expected, but there are a few small bugs. If two actions have the same key/button combinations they both will occur, unless one is the reload action. The reload action always only happens by itself.
Icon setup (.idesktop/)
To add an icon, you need to first create a .idesktop directory in your home dir and inside that directory, create a file, for example, home.lnk and inside the file put something like this:
CaptionTip: This is my home
Command: nautilus /home/you
These are the options for icon file, they should mostly be self-explantory. The Icon option is the graphic file for the icon image (either a png file or a svg file). The Execute[i] action (in .ideskrc) runs the Command[i]. If the Caption field is blank or just one space, then no caption will be created for the icon.
CaptionTip: Linux rocks
Command: echo ‘Linux rocks!’
- Double click with the first mouse button will run the command.
- When you click the icon change its appearance (depend the fill style).
- Click and drag with the first mouse button moves the icon (if not locked).
- Double-click with the middle mouse button reloads the icons and regenerates
background. Useful after changing wallpapers to clear graphical artifacts.
- Double-click with the right mouse button to toggle the lock state. The
state will be saved in the config file, so it will be remembered next startup.