embed systray in rox-panel?

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
Dry Falls
Posts: 80
Joined: Thu Jul 29, 2021 7:40 pm
Has thanked: 22 times
Been thanked: 43 times

embed systray in rox-panel?

Post by Dry Falls »

Back in the day, Jemima built a 32bit binary which accomplished this. Wondering if anyone knows a way via shell script to embed, for example, stalonetray into rox-panel.

df

User avatar
mikewalsh
Moderator
Posts: 6159
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1981 times

Re: embed systray in rox-panel?

Post by mikewalsh »

@Dry Falls :-

Umm.....'kayyy. Can you elaborate?

Like, refresh my memory, please! What IS a ROX-panel? Am I right in thinking that's what ROX uses to create the 'panel' at the bottom of my desktop?

And, um....."systray"? :? You mean the "notification area", yes? Or something else?

Mike. ;)

Dry Falls
Posts: 80
Joined: Thu Jul 29, 2021 7:40 pm
Has thanked: 22 times
Been thanked: 43 times

Re: embed systray in rox-panel?

Post by Dry Falls »

Hi Mike.
You're right on all counts. Every ROX-Filer has the ability to display a panel regardless of the WM or DE running. Details are in the help files accessable in a rox window or from a terminal,

Code: Select all

 /usr/local/apps/ROX-Filer/ROX-Filer --help

system tray is old-speak for notification area.

I've lost the link to Jemima's work in the murga forum. Hard to find in a search 'cause there're about a gazillion things she was responsible for in the old vintage puppies. I still use her network auto-connect scripts (she also gave us frisbee).

Stalone tray is a highly configurable stand-alone system tray but there are others. I'd like to embed it into rox-panel. I know it can be done 'cause she did it. It will take someone pretty familiar with rox to do this. Not sure but Battleshooter may have used it in Carolina (the fork of Jemima's Saluki). Alas, she is also no longer present on the forum.

df

geo_c
Posts: 2879
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2202 times
Been thanked: 876 times

Re: embed systray in rox-panel?

Post by geo_c »

mikewalsh wrote: Mon Jun 17, 2024 9:10 pm

@Dry Falls :-

Umm.....'kayyy. Can you elaborate?

Like, refresh my memory, please! What IS a ROX-panel? Am I right in thinking that's what ROX uses to create the 'panel' at the bottom of my desktop?

And, um....."systray"? :? You mean the "notification area", yes? Or something else?

Mike. ;)

A rox panel is very handy and I use them in F96 as a vertical panel. I create, start, and toggle them on/off with this script someone on the forum provided, and sorry I can't remember who anymore:

Code: Select all

#!/bin/sh
f=/tmp/flag
if test -f $f
then
  rox -r=
  rm -f $f
else
  rox -r charm
  touch $f
fi

And you can populate the panel by dragging items from a rox browser window. I just fired one up in KLV-spectr to see if would run, because I have rox installed. It worked great! But I didn't thoroughly test it. I think I will now. I used them in KLV-Spectrwm way back in the early stages before @Sofiya did such a nice job adding the polybar to it. Now it's about my favorite OS of all of them.

geo_c
Old School Hipster, and Such

User avatar
MochiMoppel
Posts: 1236
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 439 times

Re: embed systray in rox-panel?

Post by MochiMoppel »

Dry Falls wrote: Mon Jun 17, 2024 10:09 pm

I've lost the link to Jemima's work in the murga forum. Hard to find in a search 'cause there're about a gazillion things she was responsible for in the old vintage puppies.

Maybe this one?

See also section "Panel applets" in chapter 7 of the ROX-Filer User Manual

User avatar
Trapster
Posts: 182
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 53 times

Re: embed systray in rox-panel?

Post by Trapster »

Wow, I was the first to comment in the thread that MochiMoppel linked to.....almost 15 yrs ago!!!!

carry on..... :D

Dry Falls
Posts: 80
Joined: Thu Jul 29, 2021 7:40 pm
Has thanked: 22 times
Been thanked: 43 times

Re: embed systray in rox-panel?

Post by Dry Falls »

So I found out how Jemimah did it and that solution is not doable in this day and age. The source directory in ROX-Clib contains the systemtray.c and systemtray.h and is meant to compile but this package hasn't been maintained in a decade ... old gcc and python2.6 (via ROX-Lib2) takes care of the embedding after a rox-applet has been constructed. Lots of good help files in the clib package but I've yet to be able to create a functional rox-applet to run anything in the panel. Obviously, patching the source would be the correct choice, but this would be a gargantuan effort and well beyond my capabilities.

Without someone like Woodenshoe who's done this sort of thing before (and it would be way too much to ask!), I think I'll let this thread get burried and go on to something simpler.

df

User avatar
rockedge
Site Admin
Posts: 6543
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2749 times
Been thanked: 2624 times
Contact:

Re: embed systray in rox-panel?

Post by rockedge »

@Dry Falls Thinking about this and suddenly and idea Image

A member (who quit the forum) wrote C program examples that put things onto a system tray and panels. It's only examples but I did take and modify the code to toggle X10 devices on and off and indicate the state. I use it on the very latest KLV-Airedale's and it works on F96-CE_4 to put the icon on the XFCE4 and JWM tray.

Let me dig out the examples.....they need to be compiled and is in C coding. Track down the topic and posts describing it.

Found one example I modified but it is close to the demo, slightly altered to toggle an X10 module via a USB transceiver:

Attachments
X10_tray_toggle.tar.xz
unpack this file
(15.04 KiB) Downloaded 21 times
dogcat
Posts: 265
Joined: Fri Feb 18, 2022 11:14 pm
Has thanked: 73 times
Been thanked: 122 times

Re: embed systray in rox-panel?

Post by dogcat »

viewtopic.php?p=52778#p52778

May be useful, maybe not.

Μακάριοι οι καθαροί στην καρδιά * επειδή, θα δουν τον Θεό.

Post Reply

Return to “Programming”