Adding items to IceWM toolbar can be tricky by hand, so that it would be easier, it can do via script or program also.
Edit 8.7.2023: Finnish language pack added, and if you want translate the program, instructions are here.
Edit 1.5.2024: more dialogs
add-toolbar-deb-and-rpm-packages-6.zip
The script:
#!/bin/bash
## RPJ 9.6.2023
## 8.7.2023 locales added
# 1.5.2024 more dialogs added
#
TEXTDOMAINDIR=/usr/share/locale
TEXTDOMAIN=add-toolbar-item
NAME=`yad --center --width=500 --height=100 --text-align=center --text=$"PROGRAM NAME" --entry --entry-label=$"HERE" --entry-text=""`
yad --text=$"Choose Program" --title=$"Choose Program"
PROG=`yad --file --width=1000`
yad --text=$"Choose Icon" --title=$"Choose Icon"
ICON=`cd /usr/share/icons && yad --file --width=1000`
##
if [ $? = 0 ];
then
cp $HOME/.icewm/toolbar $HOME/.icewm/toolbar.backup
sed -i -e '$a#' $HOME/.icewm/toolbar
{
echo "prog '$NAME' $ICON $PROG"
} > /tmp/newline.txt
cat /tmp/newline.txt >> $HOME/.icewm/toolbar
rm /tmp/newline.txt
sleep 1
icewm -r
sleep 1
yad --center --width=500 --height=30 --text-align=center --text=$"New toolbar item is made"
else exit 0
fi
Edit 25.5.2024: I made deb and rpm packages from antiX´s IceWM-toolbar-icon-manager
IceWM-toolbar-icon-manager-allsystems-deb-and-rpm-packages.zip
Read also: