Page 1 of 1

HowToDo: JWM graphic desktop buttons.?

Posted: Fri 14 Mar 2014, 23:59
by sunburnt
I was wondering how Puppy has the graphical desktop buttons setup.
Each desktop button 1-3 has a little graphic of the actual desktop on it.
I looked at as many JWM files as I could find but didn`t see much.

Posted: Sat 15 Mar 2014, 19:38
by don570
Barry first discussed overlay of icons here...

http://bkhome.org/blog/?viewDetailed=02360


Then vovchik's png overlay was developed

http://www.murga-linux.com/puppy/viewto ... 688ce4adde

http://www.murga-linux.com/puppy/viewto ... 580#363580

______________________________

Posted: Sat 15 Mar 2014, 23:17
by disciple
I think you two are talking about different things. Sunburnt - what version of Puppy are you talking about? Are you sure it is running JWM?

Posted: Sun 16 Mar 2014, 00:14
by technosaurus
By recall alone I think what you are looking for is in pager.c.

Posted: Sun 16 Mar 2014, 08:37
by sunburnt
disciple is correct; It`s the desktop buttons on the Task Bar, not the desktop drive part. icons.

I`m using Puppy Precise 5.4.X.5 ( sorry about that...)

technosaurus is probably right also.

Posted: Sun 16 Mar 2014, 09:44
by disciple
So not a graphic in the sense of real thumbnails, just a symbolic representation of the windows on each desktop.

Posted: Sun 16 Mar 2014, 16:46
by sunburnt
disciple; Yes, exactly. Small squares move around on the buttons when you drag windows.

technosaurus; I see C code on Google for pager.c, but how to use.?
I`ve used xwininfo to get window info., but it`s unreliable, it can`t even list Firefox main win.

Posted: Sun 16 Mar 2014, 17:46
by amigo
technosaurus means that the code is located in pager.c of the JWM sources -that's where the graphics are created. I don't use JWM so I don't know, but they may actually be dynamically-generated thumbnails of each desktop. The 'pager' feature is common to most medium-sized or larger Window Managers or IDEs. Really small WM's rely on an external pager applications which are not integrated into any panel. Many independent panels include a 'pager section' or plugin.

"how to use.?" What are you trying to do?

Posted: Sun 16 Mar 2014, 18:58
by sunburnt
Hi amigo; Working in the DebianDog dev. thread, and it`s a nice feature that I`d like to add.
I also want to get transparency working ( xcompmgr ).
The JWM site speaks of transparency, but no mention of graphical desktop pager buttons.

I just downloaded jwm-2.2.2 and I see the pager.c file.
# Maybe some help with configure and compiling commands.?
.

Posted: Sun 16 Mar 2014, 22:59
by disciple
sunburnt wrote:Hi amigo; Working in the DebianDog dev. thread, and it`s a nice feature that I`d like to add.
Add to what, though? Try posting a link to the thread, maybe :)

Posted: Mon 17 Mar 2014, 02:43
by mcewanw
sunburnt wrote:Hi amigo; Working in the DebianDog dev. thread, and it`s a nice feature that I`d like to add.
I also want to get transparency working ( xcompmgr ).
The JWM site speaks of transparency, but no mention of graphical desktop pager buttons.

I just downloaded jwm-2.2.2 and I see the pager.c file.
# Maybe some help with configure and compiling commands.?
.
Hi Terry, I'm not sure what you mean. I've been using jwm since Toni first included it in DebianDog and the default setup includes the pager functionality. My debiandog install shows the graphical representation of the desktop in the change desktop pager buttons and you can even drag windows about in them.

Posted: Mon 17 Mar 2014, 03:19
by sunburnt
Hi William; Toni made numbered 1-4 icon buttons for JWM, that`s what I see.
Are you using Fred`s version.? Maybe that`s the difference. I`m reinventing the wheel...

disciple; http://www.murga-linux.com/puppy/viewtopic.php?t=90660

Posted: Tue 18 Mar 2014, 03:32
by technosaurus
@sunburnt why don't you stop beating around the bush and tell us what exactly you want to do. Current jwm can handle MxN desktops (see the configuration page)

Posted: Tue 18 Mar 2014, 17:00
by sunburnt
technosaurus; Sorry, I thought I was being rather clear about the desktop pager buttons.
Apparently DebianDog has some level of this enabled, but it`s still not quite the same.
Pic here shows my Puppy`s graphical pager buttons: http://www.murga-linux.com/puppy/viewto ... start=1845

Posted: Tue 18 Mar 2014, 17:49
by technosaurus
It is supported in my jwm-tools ... and my jwm_menu_create is ~15x faster than fixmenus

Posted: Wed 19 Mar 2014, 14:41
by sunburnt
technosaurus; Wondering what your jwm_menu_create is written in.?
And what method of reading & parsing the desktop files is used.?
Speed isn`t so important as the .jwmrc file is only read once to refresh, but it`s interesting.

Posted: Thu 20 Mar 2014, 04:43
by technosaurus
Its written in shell. I wrote it to be fast enough to generate menus on the fly. It is possible to use a jwm menu as an application ... a package manager was one example another was a drive mount utility. The package manager is instantaneous unlike PPM.

Posted: Thu 20 Mar 2014, 18:30
by sunburnt
Yep, like my thought for 4 screen shot menu items.
Times with a popup timer, windowed, mouse click boxed, and multi monitor.