Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 16 Dec 2019, 10:09
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How do I get the st terminal to minimize to tray?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
musher0

Joined: 04 Jan 2009
Posts: 14554
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Jul 2016, 23:48    Post subject:  How do I get the st terminal to minimize to tray?
Subject description: or any window -- instead of on the desktop.
 

Hello all.

As the title says.

I searched on the Internet, but I can't seem to find any code or binary to do this.

There is a utility called "allTray", which is referred to everywhere, but I would like
the app to do it by itself if possible.

I know technosaurus offered a very efficient tray launcher a while back, but I'm not
looking for a launcher: this app is already launched through vovchik's new aemenu-
pango, and it needs to stay that way.

It's in the context of my weather menu. I would like the weather report displayed
in st to minimize to the tray so it would be more convenient for the user to consult
over and over just by clicking on its icon in the tray.

Many thanks in advance for any leads. BFN.

~~~~~~~~~~
PS. I almost forgot! The st terminal I'm talking about is here.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Peterm321

Joined: 29 Jan 2009
Posts: 406
Location: UK

PostPosted: Thu 28 Jul 2016, 19:25    Post subject:  

If you are controlling the terminal from a script then the wmctrl command offers a few ways to adust the properties of windows including geometry and virtual desktop. I'm not sure if this this operates in the tray setup you describe.

In my experience, wmctrl can raise and/lower windows out of the WINE tray. Depending on your window manager it may be possible to assign a suitable wmctrl command to a function key to raise, lower, hide or make visible a window

Code:

wmctrl --help
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14554
Location: Gatineau (Qc), Canada

PostPosted: Thu 28 Jul 2016, 20:15    Post subject:  

Peterm321 wrote:
If you are controlling the terminal from a script then the wmctrl command offers a few ways to adust the properties of windows including geometry and virtual desktop. I'm not sure if this this operates in the tray setup you describe.

In my experience, wmctrl can raise and/lower windows out of the WINE tray. Depending on your window manager it may be possible to assign a suitable wmctrl command to a function key to raise, lower, hide or make visible a window

Code:

wmctrl --help
Thanks, Peterm321, for your suggestion.

I know wmctrl rather well. But not all window managers can co-operate with it;
wmx for example cannot.

Also, I would need something that works with a linux tray, such as the one in
bmpanel2 or fbpanel or even stalonetray.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Pete


Joined: 02 Mar 2014
Posts: 675

PostPosted: Fri 29 Jul 2016, 07:00    Post subject:  

@musher0

Would xdotool not do what you want?

i.e. something like:
xdotool key Ctrl+Alt+KP_Insert
(assuming that your pgm/script has focus)

I know that it's an extra dependency but it's a single binary and could be incorporated into a .pet
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Fri 29 Jul 2016, 07:29    Post subject:  

what about sit:
Code:
# sit
sit 8 Jan 2013-patched
usage: sit [-i files] image tooltip left-action right-action ...

  -i           full path to file(s) with shell functions to include
  image        full path to image file
  tooltip      full path to tooltip file or a "quoted tooltip"
  left-action  action to run when left mouse button is clicked
  right-action action to run when right mouse button is clicked

#

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5673
Location: King's Lynn, UK.

PostPosted: Fri 29 Jul 2016, 10:57    Post subject:  

Hi, musher0.

Are you talking about something along the lines of how the XFCE weather-app sits in the tray, and lives there full-time?


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1565

PostPosted: Fri 29 Jul 2016, 21:45    Post subject:  

I think minimize is not an option on purpose, to get you to think "outside-the-box". Wink You can't minimize folders in real life. Laughing
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14554
Location: Gatineau (Qc), Canada

PostPosted: Fri 29 Jul 2016, 22:34    Post subject:  

Hello Mike Walsh, Sailor Enceladus and all.

Thanks to all of you for your suggestions.

@Mike: I tried it a couple of times, but I don't really know XFCE, so I couldn't tell.

@Sailor: i would like to minimize a terminal, not a folder, to tray. Silly brain!!! Laughing
Who'd want to minimize a folder in the tray!!!

@Smokey001: I know technosaurus' fine little "sit" utility, but it does the contrary of
what I'm looking for. "sit" launches stuff from the tray, but I want the st terminal to
go in the tray when it iconifies.

It shouldn't be so hard: seamonkey and firefox have plug-ins for it, as well as geany.
This function has to be out there, it's just hard to find, that's all!!! Smile

Thanks again, and a great evening to you all!

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0489s ][ Queries: 12 (0.0137s) ][ GZIP on ]