How to create button theme for JWM?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
user1234
Posts: 414
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 155 times
Been thanked: 90 times

How to create button theme for JWM?

Post 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?

PuppyLinux 🐾 gives new life to old computers ✨

User avatar
amethyst
Posts: 2414
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 504 times

Re: How to create button theme for JWM?

Post 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

User avatar
user1234
Posts: 414
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 155 times
Been thanked: 90 times

Re: How to create button theme for JWM?

Post 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.

PuppyLinux 🐾 gives new life to old computers ✨

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: How to create button theme for JWM?

Post 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.

User avatar
user1234
Posts: 414
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 155 times
Been thanked: 90 times

Re: How to create button theme for JWM?

Post 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??

PuppyLinux 🐾 gives new life to old computers ✨

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: How to create button theme for JWM?

Post 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>

Post Reply

Return to “Users”