I have made a menu and would like to have it show up on all the desktops when switching from one to the other.
I have no idea on how to do this. This is the code for the menu.
Code: Select all
#! /bin/bash
if [ "`which gtkdialog4`" ]; then
GTKDIALOG=gtkdialog4
elif [ "`which gtkdialog3`" ]; then
GTKDIALOG=gtkdialog3
else
GTKDIALOG=gtkdialog
fi
export WORKDIR="/usr/local/MannaMenu"
export ICONSDIR="/usr/local/MannaMenu/icons"
if [ "`which ParallelBible`" ]; then
PARALLELBIBLE='
<button tooltip-text="Parallel Bible" height-request="0" width-request="0">
<input file>'$ICONSDIR'/Bible.png</input><height>30</height><width>60</width>
<action>ParallelBible &</action>
</button>'
else
PARALLELBIBLE=''
fi
if [ "`which ISBE`" ]; then
ISBE='
<button tooltip-text="THE INTERNATIONAL STANDARD BIBLE ENCYCLOPEDIA" height-request="0" width-request="0">
<input file>'$ICONSDIR'/Book2.png</input><height>30</height><width>60</width>
<action>ISBE &</action>
</button>'
else
ISBE=''
fi
if [ "`which STRONGS`" ]; then
STRONGS='
<button tooltip-text="Strongs" height-request="0" width-request="0">
<input file>'$ICONSDIR'/Book2.png</input><height>30</height><width>60</width>
<action>STRONGS &</action>
</button>'
else
STRONGS=''
fi
if [ "`which /usr/local/Kiyut/Alkitab-2_9_1/bin/alkitab`" ]; then
ALKITAB='
<button tooltip-text="Alkitab Bible Study" height-request="0" width-request="0">
<input file>'$ICONSDIR'/alkitab48.png</input><height>30</height><width>60</width>
<action>/usr/local/Kiyut/Alkitab-2_9_1/bin/alkitab &</action>
</button>'
else
ALKITAB=''
fi
if [ "`which /root/bibledesktop-1.6/BibleDesktop.sh`" ]; then
BIBLEDESKTOP='
<button tooltip-text="Bible Desktop" height-request="0" width-request="0">
<input file>'$ICONSDIR'/BibleDesktop128.png</input><height>30</height><width>60</width>
<action>/root/bibledesktop-1.6/BibleDesktop.sh &</action>
</button>'
else
BIBLEDESKTOP=''
fi
if [ "`which bibleanalyzer4.sh`" ]; then
BibleAnalyzer4='
<button tooltip-text="BibleAnalyzer" height-request="0" width-request="0">
<input file>'$ICONSDIR'/75DE_BibleAnalyzer4.0.png</input><height>30</height><width>60</width>
<action>bibleanalyzer4.sh &</action>
</button>'
else
BibleAnalyzer4=''
fi
if [ "`which bibletime`" ]; then
bibletime='
<button tooltip-text="bibletime" height-request="0" width-request="0">
<input file>'$ICONSDIR'/bibletime.xpm</input><height>30</height><width>60</width>
<action>bibletime &</action>
</button>'
else
bibletime=''
fi
if [ "`which e-Sword.sh`" ]; then
eSword='
<button tooltip-text="esword" height-request="0" width-request="0">
<input file>'$ICONSDIR'/esword.png</input><height>30</height><width>60</width>
<action>e-Sword.sh &</action>
</button>'
else
eSword=''
fi
if [ "`which theword.sh`" ]; then
theWord='
<button tooltip-text="theWord" height-request="0" width-request="0">
<input file>'$ICONSDIR'/CB2C_theword.0.png</input><height>30</height><width>60</width>
<action>theword.sh &</action>
</button>'
else
theWord=''
fi
if [ "`which xiphos`" ]; then
xiphos='
<button tooltip-text="xiphos" height-request="0" width-request="0">
<input file>'$ICONSDIR'/xiphos.svg</input><height>30</height><width>60</width>
<action>xiphos &</action>
</button>'
else
xiphos=''
fi
RIGHT=10 DOWN=200= WIDTH=0 HEIGHT=0
export MAIN_DIALOG='
<window title="MannaMenu" icon-name="Com" decorated="false" skip_taskbar_hint="true" >
<vbox>
<button tooltip-text="Bible Reader" height-request="0" width-request="0">
<input file>'$ICONSDIR'/KJV.png</input><height>30</height><width>60</width>
<action>Manna &</action>
</button>
'$PARALLELBIBLE'
<button tooltip-text="Teachings" height-request="0" width-request="0">
<input file>'$ICONSDIR'/Com.png</input><height>30</height><width>60</width>
<action>studies &</action>
</button>
'$ISBE'
'$STRONGS'
'$ALKITAB'
'$BibleAnalyzer4'
'$BIBLEDESKTOP'
'$bibletime'
'$eSword'
'$theWord'
'$xiphos'
<button tooltip-text="Editor" height-request="0" width-request="0">
<input file>'$ICONSDIR'/typewriter.png</input><height>30</height><width>60</width>
<action>Editor &</action>
</button>
<hbox homogeneous="true">
<button tooltip-text="Refesh">
<input file>'$ICONSDIR'/refresh.png</input><height>15</height><width>30</width>
<action>'$WORKDIR'/Manna-Menu &</action>
<action type="exit">quit_now</action>
</button>
</hbox>
</vbox>
</window>
'
gtkdialog --program=MAIN_DIALOG -G ${1-${WIDTH}x${HEIGHT}+${RIGHT}+${DOWN}}