Idesk linkmaker for Idesktop

One way to get desktop icons to IceWM desktop is to use Idesk. Desktop links can made by hand, but it easier to make using a script. More info from Idesk from https://wiki.archlinux.org/title/Idesk

This script needs Yad package to be installed.

idesk-linkmaker2

Edit: 6.6.2023 The same, but deb and rpm packages.

Edit 10.6.2023: Icon size reduced as 48×48 and autogenerate $HOME/.idesktop added.

IDESK-LINKMAKER-DEB-AND-RPM-PACKAGES

idesklinkmaker is a program for making desktop icons for Desktops like IceWM, JWM, etc. Obviously it does not came to PCLinuxOS menu, because rpm-package has made using Alien from deb-package (category Utility is missing in PCLinuxOS?).

Read also: https://puolanka.info/goto/icewm-toolbar-item-add-script-program/

For get icons to Desktop, you need to install idesk and make a $HOME/.idesktop folder where lnk-files are going. Icons come to the same place, so you need to drag them after creation to different places. After creation you need to re-start idesk like

pkill idesk && sleep 3 && idesk &

########################################################################

#!/bin/bash
NAME=`yad --center --width=500 --height=100 --text-align=center --text="PROGRAM NAME" --entry --entry-label=HERE --entry-text=""`
PROG=`cd /usr/bin && yad --file --width=1000`
ICON=`cd /usr/share/icons && yad --file --width=1000`
if [ $? = 0 ];
then
{
echo 'table Icon'
echo "Caption: $NAME"
echo "ToolTip.Caption: $NAME"
echo "Icon: $ICON"
echo 'Width: 64'
echo 'Height: 64'
echo 'X: 30'
echo 'Y: 424'
echo "Command[0]: $PROG"
echo 'end'
} > $HOME/.idesktop/$NAME.lnk
yad --center --width=500 --height=30 --text-align=center --text="New icon is made. Restart idesk to see results"
else exit 0
fi

At first you need to set name, then select program and at the end icom.

PS. alsamixer is a terminal app, so it has no GUI.

Read also: https://puolanka.info/goto/icons-for-icewm-desktop/