Page 1 of 1

Window with some info on desktop (solved)

Posted: 03 Apr 2017, 21:35
by michalh
Porteus 32b with Mate.
I'd like to have window with some text info on desktop, opened automatically after Mate starts. I use rxvt; I can run the command (rxvt + parameters) from Mate (terminal) by hand, it works (it opens rxvt window with desired text).
But:
a) What is the right place for the command? /etc/xprofile did not work (or I did something wrong).
b) I need the rxvt window to be with no borders, no window tittle and so on. Just background with text. How to change these attributes of the rxvt window?

Thanks, Michal

Re: Window with some info on desktop

Posted: 04 Apr 2017, 18:01
by Blaze
Hi michalh.
a) How about create your.desktop file at the /etc/xdg/autostart/ with Exec=here-your-rxvt-command?

Re: Window with some info on desktop

Posted: 05 Apr 2017, 10:14
by michalh
Blaze wrote:Hi michalh.
a) How about create your.desktop file at the /etc/xdg/autostart/ with Exec=here-your-rxvt-command?
I will try, thanks. Already did that in usr/share/mate/autostart - the window appears, thats ok. But with top icon bar and borders, I!d like to have the window without them.
And it appears in task list on desktop status bar (task bar), I do not want it there.

Michal

Re: Window with some info on desktop

Posted: 05 Apr 2017, 17:19
by Ed_P
michalh maybe if you create your window with a gtkdialog you will get closer to what you want. See the coding shown here for an example of one: http://forum.porteus.org/viewtopic.php? ... 233#p49231

Re: Window with some info on desktop

Posted: 05 Apr 2017, 18:38
by Blaze
gtkdialog (example)

Code: Select all

#!/bin/bash 
GTKDIALOG=gtkdialog 
export MAIN_DIALOG=' 
<window title="Title of app" icon-name="gtk-about" resizable="true" width-request="350" height-request="170"> 

<vbox> 

<button>
<label>User 1</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 2</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 3</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>User 4</label>
<action>exec firefox http://government-site.org</action>
</button>

<button>
<label>Exit</label>
<action type="exit">Cancel</action>
</button>

</vbox>

</window>
'
case $1 in
-d | --dump) echo "$MAIN_DIALOG" ;;
*) $GTKDIALOG --program=MAIN_DIALOG --center ;;
esac

Re: Window with some info on desktop

Posted: 05 Apr 2017, 19:11
by michalh
I just discovered "conky", that's exactly what I need... very nice tool.
Thanks.