Code: Select all
<Group>
<Name>on-top</Name>
<Class>on-top</Class>
<Option>layer:12</Option>
</Group>
http://openbox.org/wiki/Help:Applicatio ... n_settings
Cheers,
s
Code: Select all
<Group>
<Name>on-top</Name>
<Class>on-top</Class>
<Option>layer:12</Option>
</Group>
So, depending on the JWM version you are running:JWM Configuration web page wrote:layer
The layer of the tray. The default is above. Valid values are below, normal, and above.
Code: Select all
<Group>
<Name>on-top</Name>
<Class>on-top</Class>
<Option>layer:12</Option>
</Group>
Code: Select all
<Group>
<Name>on-top</Name>
<Class>on-top</Class>
<Option>layer:above</Option>
</Group>
Zigbert provides a code snippet on the first page of this thread ("The next script shows how to move items in list by drag'n drop"). Not really buttons and I haven't tested, but maybe a start.puppy_apprentice wrote:I want to make buttons UP and DOWN to move item on the list/tree gadget one place up or down. Is there built-in function for this task or i will have make own bash function for this? Maybe someone has code snippet for this?
Code: Select all
<button tooltip-text=\" $(gettext 'Move item UP') \">
<variable>MOVE_UP</variable>
<input file stock=\"gtk-go-up\"></input>
<visible>$VISIBLE_MOVE_UPDOWN</visible>
<action>DIRECTION=up; . $APPDIR/func -move_up_down; . $APPDIR/func -info_burn</action>
<action>refresh:BURNLIST</action>
</button>
Code: Select all
<action signal="button-press-event">grep -F "$PLAYLIST" '$WORKDIR'/playlist > '$WORKDIR'/PLAYLIST_PRESS_EVENT; [ "$PLAYLIST" ] && . '$APPDIR'/menu_playqueue</action>
<action signal="button-release-event">. '$APPDIR'/func -playlist_move</action> ##this will play the track as well
<action signal="button-release-event">refresh:PLAYLIST</action>
Code: Select all
#!/bin/bash
[ -z $GTKDIALOG ] && GTKDIALOG=gtkdialog
export DAT=/dev/shm/var1
echo "800" > $DAT
# Letro movil
funcion1 () {
VAR=( `cat $DAT` )
echo '<svg width="800" height="150" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<text x="'$VAR'" y="46" xml:space="preserve" style="font-family:monospace;font-size:64px;" font-weight="bold" fill="#7F0D0D" opacity="0.8">MOBILE SIGN WORKING</text>
</svg>' > /dev/shm/var2.svg
VAR=`echo "$VAR - 10" | bc -l`
echo ${VAR} > $DAT
NUM=${VAR%%}
if [ $NUM -lt -720 ]; then echo "800" > $DAT; else deci=0; fi
}
export -f funcion1
export MAIN='
<window title="Mobile sign" resizable="false">
<vbox>
<pixmap>
<variable>IMG</variable>
<input file>/dev/shm/var2.svg</input>
</pixmap>
<button ok></button>
<timer visible="false" milliseconds="true" interval="100">
<action>funcion1</action>
<action type="refresh">IMG</action>
</timer>
</vbox>
</window>
'
case $1 in
-d | --dump) echo "$MAIN" ;;
*) $GTKDIALOG -cp MAIN ;;
esac
unset mobile_sign
unset funcion1
killall -9 mobile_sign.sh