Page 1 of 1

How to create button theme for JWM?

Posted: Wed Mar 09, 2022 12:58 pm
by user1234

I have created a JWM theme (nearly that to get the feel of kubuntu), using .pet mentioned here- viewtopic.php?p=21932. I also want to change the close, minimize and maximize buttons. How can I do that?


Re: How to create button theme for JWM?

Posted: Wed Mar 09, 2022 2:13 pm
by amethyst
user1234 wrote: Wed Mar 09, 2022 12:58 pm

I have created a JWM theme (nearly that to get the feel of kubuntu), using .pet mentioned here- viewtopic.php?p=21932. I also want to change the close, minimize and maximize buttons. How can I do that?

Don't know about other Puppys but in Bionic: From Desktop in menu > Desktop Settings > Windows > Buttons theme at the bottom


Re: How to create button theme for JWM?

Posted: Wed Mar 09, 2022 3:38 pm
by user1234
amethyst wrote: Wed Mar 09, 2022 2:13 pm
user1234 wrote: Wed Mar 09, 2022 12:58 pm

I have created a JWM theme (nearly that to get the feel of kubuntu), using .pet mentioned here- viewtopic.php?p=21932. I also want to change the close, minimize and maximize buttons. How can I do that?

Don't know about other Puppys but in Bionic: From Desktop in menu > Desktop Settings > Windows > Buttons theme at the bottom

I have got fossapup, by the way. Don't know if it is available in fossapup. Would check tomorrow when I open my laptop.


Re: How to create button theme for JWM?

Posted: Wed Mar 09, 2022 4:44 pm
by HerrBert

Fossapup has menu -> Desktop -> JWMDesk. Click the window tab. There you can change title bar buttons.
To create your own button theme have a look at /usr/local/jwmdesk/jwm_button_themes to get an idea of how it can be done.
Directory name = theme name.
Important thing to make it work is the naming of each icon.


Re: How to create button theme for JWM?

Posted: Thu Mar 10, 2022 8:10 am
by user1234
amethyst wrote: Wed Mar 09, 2022 2:13 pm
user1234 wrote: Wed Mar 09, 2022 12:58 pm

I have created a JWM theme (nearly that to get the feel of kubuntu), using .pet mentioned here- viewtopic.php?p=21932. I also want to change the close, minimize and maximize buttons. How can I do that?

Don't know about other Puppys but in Bionic: From Desktop in menu > Desktop Settings > Windows > Buttons theme at the bottom

As I had thought, there is nothing like that in fossapup.

HerrBert wrote: Wed Mar 09, 2022 4:44 pm

Fossapup has menu -> Desktop -> JWMDesk. Click the window tab. There you can change title bar buttons.
To create your own button theme have a look at /usr/local/jwmdesk/jwm_button_themes to get an idea of how it can be done.
Directory name = theme name.
Important thing to make it work is the naming of each icon.

Ok, I got that. max.* is the button shown when the application is not maximized, maxact.* is the button shown when the application is already maximized, close.* means close button and min.*means minimize button. Right??


Re: How to create button theme for JWM?

Posted: Thu Mar 10, 2022 8:52 am
by HerrBert

Right.

When you switch the window title bar button theme, these icons will be converted to /usr/share/pixmaps/*.png

/root/.jwm/jwmrc-personal will have this code:

<ButtonClose>/usr/share/pixmaps/close.png</ButtonClose>
<ButtonMax>/usr/share/pixmaps/max.png</ButtonMax>
<ButtonMaxActive>/usr/share/pixmaps/maxact.png</ButtonMaxActive>
<ButtonMin>/usr/share/pixmaps/min.png</ButtonMin>