JWM title bar window buttons bitmask? [SOLVED]

Themes, icons, wallpapers, etc.
Post Reply
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#16 Post by mavrothal »

01micko wrote: Be aware that the xdg template I attach is for Slacko (don't know the consequences in other pups, be warned) and so optional.
Only took 2 months to stumbled upon this one... :oops:

What about dropping jwm_xdg_template-0.1-hack.pet for a jwm_window_decor-switcher-0.1.pet pinstall like this:

Code: Select all

if [ -f /etc/xdg/templates/_root_.jwmrc ] ; then
	sed -i "s/<\/JWM>//" /etc/xdg/templates/_root_.jwmrc
	cat << EOF >> /etc/xdg/templates/_root_.jwmrc

	<!-- window buttons -->
	<ButtonClose>/usr/share/pixmaps/close.xbm</ButtonClose>
	<ButtonMax>/usr/share/pixmaps/max.xbm</ButtonMax>
	<ButtonMaxActive>/usr/share/pixmaps/maxact.xbm</ButtonMaxActive>
	<ButtonMin>/usr/share/pixmaps/min.xbm</ButtonMin>

</JWM>
EOF
fi
Should work in any JWM puppy. No?

Later Yeap. It does. Here is Micko's pet with this change. Tested in a couple of puppies OK
Attachments
jwm_window_decor-switcher-0.2.pet
Micko's jwm_window_decor-switcher-0.1.pet (from previous page) modified for every JWM puppy
(5.57 KiB) Downloaded 752 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#17 Post by scsijon »

As a reply from joe I thought it might be appropriate to copy.
It's possible (and was done in the past). I removed this feature so that JWM would draw the buttons scaled to the right size (JWM now uses Xlib drawing primitives rather than bitmaps).
I probably won't implement this (at least not in the near future) though since I would like to keep JWM as lean as possible.
regards
scsijon

ps JWM has it's own thread under Desktops.

Post Reply