Page 1 of 7

JWM Theme Maker 2.2 (June 2016)

Posted: Mon 10 Aug 2009, 04:45
by trio
Hi,

Useful for theme lovers...try it, you'll like it!

Version 2.2 : create matching gtk theme button (if gtkthememaker is installed, minimum v 2.1 to work properly, from here
Version 2.1 : Change theme dir according to ptheme if ptheme is available
Version 2.0 : Compatible with new ptheme (as in slacko 6.3 Nov 2015). GTK Theme maker not needed

Dependencies for older version :
- ffmpeg with x11grab or avconv with x11grab
- Xdialog
- gxmessage
- GTK Theme Maker 1.9.4 from here (1.9.7 and up). Create Gtk theme button will not appear in edit window if gtk theme maker is not installed

Version 1.9.8.2: even put longer sleep (some systems take longer to get xwininfo for tray i), longer splash info window too
Version 1.9.8.1: important updates/bugfix. for puppies not using ptheme. put enough sleep so xwininfo can get proper tray window id, then ffmpeg can grab proper tray pic
- still have the ability to create matching gtk theme when editing saved theme


Version 1.9.8 :
- Bugfix:complete the created gtk theme with buttons
- just found out that in tahr 6, auto grab tray pic still works, but you need to click on tray 2 times. As for slcko no ptheme, you don'nt need to
Version 1.9.7 :
- can create matching gtk theme from a saved theme, go to the edit window
- needs at least GTK Theme Maker 1.9.4 from here
Version 1.9.6 : Now supports font style
Version 1.9.5 : Using comboboxtext fot font and spinbutton for font size, prevent user mistake
Version 1.9.4 : Reverting back to fc-list, jwm seem does not support many font attributes (bold, italic, obligue etc)
Version 1.9.3 : Use native gtkdialog fontselector
Version 1.9.2 : Warning when saving an existing theme name
Version 1.9.1 : Warning & relaunch jwmthememaker when trying to edit a theme not made by jwmthememaker
Version 1.9 : Remove rgb2hexscript, now use native gtkdialog colorchooser
Version 1.8 : seems a bit snappier - with newer jwm theme change script (precise, slacko, quirky unicorn, tahr). keeping 1.7.9 for older puppies
Version 1.7.9: fix pop-up notification when saving
Version 1.7.8:
- grab preview of title bar window height correctly if changed
- preview func, not saving
- Change jwm config button to jwm theme switcher
Version 1.7.7: bugfix again when grab preview pic
Version 1.7.6: Version 1.7.6: better handling when saving
Version 1.7.5: only change how functions work
Version 1.7.4: bugfix: get correct preveiw pics when tray height is changed
Version 1.7.3: Tidy up, add more tooltips & warnings. This will be the last version for now, unless something come up
Version 1.7.2: Fully compatible with precise 5.7.1, slacko 5.7, tahr 6.0 (as long as jwm taskbartray swallows xload). Might work with quirky 6.0. It will fail to grab taskbar pic if in autohide mode and/or if the taskbar is not on top or bottom
Version 1.7.1:
- Bugfix: fc-list compatibility when edit mode
- New: will use avconv instead of mmpeg if not available
Version 1.7: replace binary rgb2hex to a bash script called rgb2hexscript
Barry in his blog said:
Forum member trio wrote JWM Theme Maker:
http://murga-linux.com/puppy/viewtopic.php?t=45397
I previously had it in the 'noarch' repo, but realised that it has a x86 binary executable in it, so have moved it to 'common'.

Recently, L18L has internationalised the script, so I have created a new PET, and bumped the version from 1.5 to 1.5.1 (5K):
http://distro.ibiblio.org/quirky/pet_pa ... .1-x86.pet
Version 1.6.1: fix fc-list compatibility. Fully working for precise 5.7.1 and slacko 5.7, also with fc-list of tahr 6.0 (but tahr needs proper ffmpeg to make jwmthememaker create preview pics, other than that it works)
Version 1.6 (updated in precise 5.7.1)
- BUGFIX: Edit function actually was not working before (nobody complaints though)
- NEW!!!! AUTOMAGICALLY CREATES PREVIEW PICS FOR THE THEME SWITCHER (using ffmpeg, will fail to grab taskbar pic if in autohide mode and/or if the taskbar is not on top or buttom)
Version 1.5:
- Total Overhaul - now the gui and all functions are in one file only
- ABILITY TO EDIT A SAVED THEME, AND ONLY FOR THEMES MADE BY JWMTHEMEMAKER

Updated to v 1.4 - added: pop-up box background & text colors, border outline color, tooltips (info of usage of entries & buttons)
Updated to v 1.3 - delete a theme & instant apply functions
Updated to v 1.2-1 - bugfix: sort & filter duplicated font names
Updated to v 1.2 - added - Font & Font Size Configuration too
Updated to v 1.1 - added - button to go to JWM Config Manager


When you've collected say 100 themes, you might want to use Desktop Display/Themes Profile Manager, available here
And you may want to use GTK Theme Maker

Posted: Mon 10 Aug 2009, 04:51
by magerlab
interesting application!
is it possible to add a box for changing font also?

Posted: Mon 10 Aug 2009, 04:54
by trio
magerlab wrote:interesting application!
is it possible to add a box for changing font also?
Possible, maybe for next upgrade

Thanks

Posted: Mon 10 Aug 2009, 05:19
by DaveS
Are colour gradients supported?

Posted: Mon 10 Aug 2009, 05:20
by trio
DaveS wrote:Are colour gradients supported?
yes, see boxes fr ---- to -----

Cheers

Posted: Mon 10 Aug 2009, 05:49
by dejan555
Mmmmm, nice, I already see bunch of new themes for puppy :)
Gonna try this first thing I get home!

Posted: Mon 10 Aug 2009, 09:10
by trio
I already made the JWM theme maker to perform changing of fonts and font size. But i still have to type in font names manually.

I need a file that lists REAL FONT NAMES, not the .ttf names. for example:

Maybe put them in /tmp/fontlist.txt;
monofonto
Dejavu Sans
ionic charge
pdingobats
arial

Help, anybody? thanks.

Posted: Mon 10 Aug 2009, 09:18
by dejan555
maybe using some cli utility for listing fonts? xfontsel, xlsfonts? Don't know if any of them are in puppy by default, I'm not @ home atm.

Posted: Mon 10 Aug 2009, 09:31
by trio
thanks dejan,

I think fc-list command might do it..need to play some more

Posted: Mon 10 Aug 2009, 10:16
by trio
Updated to v 1.1 - added - Font & Font Size Configuration too :lol:

see main post

Posted: Mon 10 Aug 2009, 10:26
by trio
Beatiful red theme in less than 5 minutes! :lol: :lol: :lol:

Posted: Mon 10 Aug 2009, 10:46
by 01micko
hehe....

Inside 5 minutes... upload screeny and all!

Cheers Bro!

Others Use this App! :lol: 8) :) :D

Posted: Mon 10 Aug 2009, 11:14
by dejan555
It's announced on puppy-look too, couldn't wait till I get home :D

Posted: Mon 10 Aug 2009, 12:06
by trio
Thanks guys, enjoy!

Dejan, thanks for the announcement, and yes, if you have a lot of themes already, you need to use Desktop Display/Theme Profile Manager

Cheers

Posted: Mon 10 Aug 2009, 23:39
by Yogi
Apparent problem with your new theme maker 1.2. No matter which menu item I choose, when the Xdialog box pops up and I try and choose a color it closes Xdialog without allowing me to change anything. Also, there are no font names listed under fonts.
Other than that I think this is a great idea. I've tried making my own jwm themes manually in the past and it's kind of tedious. This speeds things up alot. I can see this evolving and adding new life to a great window manager whose only drawback was the eye candy factor.

Puppy 2.17

Posted: Tue 11 Aug 2009, 00:23
by trio
Hi Yogi,

Thanks for testing. You are not using puppy 4 series? That's the problem. Not the app. My fault, should have put it in main post. Puppy 3 'maybe' can use it. But, appearently not puppy 2

Cheers

Posted: Tue 11 Aug 2009, 01:16
by Yogi
trio,

Any way to make JWM Thememaker retroactive to us diehards? I'm one of those Puppy users who prefer the older versions (Puppy 2.xxx). How can I help you test for compatibility?

Posted: Tue 11 Aug 2009, 01:27
by trio
Ok, let's try.

From terminal
#rgb2hex xx xx xx (put any rgb value)

And this

#fc-list

And post the result

Posted: Tue 11 Aug 2009, 02:14
by Yogi
trio,

Here you are:

# rgb2hex 87 CE FA
Incorrect input!
# fc-list
bash: fc-list: command not found

Posted: Tue 11 Aug 2009, 02:27
by trio
Yogi,

1. You have to put a correct R G B value, find it from color selec tor (you have one in puppy 2 right?) try again

2. You don't have fc-list as default. It may be ok to still use JWM theme maker without the font config (previous v 1.1)

3. Please try this also from terminal

#Xdialog --stdout --colorsel 22 75 [ 0 0 0 ] > /tmp/testcolor.txt

In the color select dialog, you choose a color then, from terminal:

#cat /tmp/testcolor.txt

and report the result