How to place an executable icon in the systray area?[SOLVED]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#41 Post by Mike Walsh »

Hah!

Ah reckon ah was 'barking up the wrong tree', mate..... (*groan*)

It's all too easy to get tunnel-vision when you're trying to work on a specific problem!
greengeek wrote:Sounds like a good tip to be included in the newsletter don'cha think Mike?
Indeed I do. But I think credit should go to Mochi and drunkjedi for that one.....not me.


Mike. :wink:

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#42 Post by fredx181 »

Hi Mike, good that it finally works for you. :)

Indeed for JWM, the TrayButton option is the best, sorry if I've put you on the wrong track.
(don't know much about JWM, also thought that a button is only possible on left hand side)

On the other hand the "yad tray-icon" might be useful also, since it works with all desktop environments, e.g. LXDE, XFCE, and panels e.g. tint2 , etc...
And it has some useful options, such as right-click menu etc.. (which you didn't explore.... yet... ?? :wink: )

Fred

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#43 Post by puppy_apprentice »

Mike Walsh wrote:I might even set things up, now I know you can do this, to have two or three buttons (each with a different-coloured star), to send stuff to one of 3 specific folders I generally send stuff to.....
or one button which starts script TryButton.sh:

Code: Select all

#!/bin/sh
gxmessage -nearmouse -buttons "HDD1:42,HDD2:52,HDD3:62,CANCEL:255" "Where to save?"
case $? in
  42) echo "Copying to HDD1" ;;
  52) echo "Copying to HDD2" ;;
  62) echo "Copying to HDD3" ;;
  *) echo "Operation Canceled" # or empty
esac
Mike Walsh wrote:Quick question: I know /etc/xdg/templates/_root_jwmrc generates /root/.jwmrc. Does anything 'generate' /root/.jwmrc-tray.....or will this stay as I've set it, i.e., will it get overwritten by anything?
Should persist everything. If no you can always do it again ;)
Last edited by puppy_apprentice on Tue 13 Mar 2018, 19:39, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#44 Post by musher0 »

Being so jwm-centric is a sickness, you all know that, don't you? I think i'll suggest the
whole bunch of you "jwm tribe" for study at the local department of anthropology.

At least the yad solution has the merit of being available independently of any WM.

Geez.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#45 Post by Mike Walsh »

@fredx181:-
fredx181 wrote:Indeed for JWM, the TrayButton option is the best, sorry if I've put you on the wrong track.
(don't know much about JWM, also thought that a button is only possible on left hand side)
No worries. I know you've been working on yad-radio in recent days.... You're forgiven..! :lol: And I always like to keep my options open, anyway; the more the merrier, mate.
fredx181 wrote:And it has some useful options, such as right-click menu etc.. (which you didn't explore.... yet... ?? :wink: )
I haven't finshed playing about with it just yet.... :lol:

----------------------------------------

@puppy_apprentice:-

Mmm... Sehr interessante, Kolonel..!

I'll have a look into that when I get a chance. Cheers.

----------------------------------------

@musher0:-

Musher, Musher, Musher..... it's not a sickness at all, y'know. (Maybe a bit of an 'affectation', perhaps, but er.....a-HEM!!!)

Not all my Pups use JWM. One uses Openbox.....and Lucid (under rerwin's careful maintenance) uses fbPanel. (Mind you, learning how to use fbPanel is a whole different ball-game.....yes, indeedy!)

You're right in one respect, though; every 'panel' or WM out there has its own peculiarities.....but, 'JWM-centric'? Puh-leeze...


Mike. :wink:

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#46 Post by smokey01 »

http://murga-linux.com/puppy/viewtopic. ... =985608536

This should do what you want as well.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#47 Post by Mike Walsh »

smokey01 wrote:http://murga-linux.com/puppy/viewtopic. ... =985608536

This should do what you want as well.
Cheers for that, Grant. Nice to know we have plenty of options available. And to think all the elder 'guru' critics accuse Puppy of being a 'toy' distro..! (As if Ubuntu, Slackware, Debian, et al, are all so bloody perfect..!!!) :roll: :shock: :lol:

I tell you one thing, mate; browsing many of the other Linux forums I belong to, you quickly realize one thing. Most of the mainstream distro's users are content to sit on their arses, bitch & moan loudly online, and wait for (and expect) someone else to write the software they want....

What do we do in Puppy? We get on with it, and write the software ourselves! Is it any wonder I love this community of ours..?

I think not. Pup rules, oh yes.... ♥ ♥ ♥ Image


Mike. :wink:

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#48 Post by MochiMoppel »

Mike Walsh wrote:I apparently didn't read drunkjedi's post carefully enough: <snip> I thought this had to be written in 'Swallow' format
Good guess. Maybe you thought that for drunkjedi (look at his bottle!!) everything has to be in "swallow format" :wink:
Quick question: I know /etc/xdg/templates/_root_jwmrc generates /root/.jwmrc. Does anything 'generate' /root/.jwmrc-tray.....or will this stay as I've set it, i.e., will it get overwritten by anything?
puppy_apprentice already answered this. Only one additional thought: Judging from your video you already have customized your tray considerably. Particularly the fixed width items in your task list (right of the pager) look like buttons and in "normal" configurations would occupy whatever space is available in the tasklist. In your setup it leaves parts of the tasklist unused, which I find unusual and hard to set up manually without a good knowledge of JWM. So my guess is that you use a fronted GUI for your configurations (radky's excellent tools come to mind). If so then I see a chance that your right-sided TrayButton might not be recognized when you use such tool in the future. Such tools can never be as flexible as a manual edit and in my experience should either be used for all alterations or not at all. Mixing both methods can lead to unexpected results.

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#49 Post by drunkjedi »

MochiMoppel wrote:
Mike Walsh wrote:I apparently didn't read drunkjedi's post carefully enough: <snip> I thought this had to be written in 'Swallow' format
Good guess. Maybe you thought that for drunkjedi (look at his bottle!!) everything has to be in "swallow format" :wink:
Ha ha ha, that's somewhat true, I am a occasional drinker but when I drink I "swallow" whatever drink my friends throw at me. :wink:
The name is actually a mix of Jakie Chain's "Drunken Master" and a know it all "Jedi", from all the google searches that's the only pic I liked.

Anyways I should have worded that sentence differently to put emphasis on what I had to say. But it was almost midnight and closing time at work, so had to fill up logbooks, reports. So typed it in hurry.
When I have time I will look at tray in fatdog too and add to this thread what I find.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#50 Post by Mike Walsh »

Morning, Mochi.
MochiMoppel wrote:So my guess is that you use a fronted GUI for your configurations (radky's excellent tools come to mind).
Spot-on, actually. I do use radky's PupControl; didn't find out till several days after I'd first installed it that it also included the JWM DeskManager. Brilliant tool. Far more intuitive, and easier to use than the normal JWM settings panel (Menu->Desktop->JWM configuration). But then I've always liked big, bold GUIs.

Never liked a lot of Windoze GUIs, 'cos they're always so cramped, and jammed-full of tiny type that's hard to read. (I don't mind using the command-line either nowadays.....but if I'm going to use a GUI, then I want to able to see it clearly...)

In many respects, modern Linux wins hands-down in this respect.

---------------------------------------------
MochiMoppel wrote:...I see a chance that your right-sided TrayButton might not be recognized when you use such tool in the future. Such tools can never be as flexible as a manual edit and in my experience should either be used for all alterations or not at all. Mixing both methods can lead to unexpected results.
Point taken. We shall see what happens when I next run JWMDesk.

Anyway, the TrayButton for my script has persisted through several re-boots so far. All things being equal, it'll remain there indefinitely.

Time will tell.


Mike. :wink:

Post Reply