Found it! JWM glitch solution! (+some thoughts)

News, happenings
Post Reply
Message
Author
User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

Found it! JWM glitch solution! (+some thoughts)

#1 Post by lior2b »

I've managed to find the source of this glitch, in order to fix this remove the "<Tray ... />" entry from the file ~/.jwm/jwmrc-personal and restart JWM. Screenshot without the glitch:
Image

Now, some thoughts :) The news from March 18 described some bugs of JWM, summary:
1. Glitch - Fixed
2. Taskbar space - Fixed
3. Swallowed being killed - Hopefully fixed
4. JWM crash - Fixed

All fixes will (hopefully) be in the next JWM release (thank you Joe!)! Moreover, I plan to add some features to that release.

Now for the screenshot... three things:
1) As you can see I use the new launcher feature of JWM, I have a Show Desktop button and a Mozilla launcher.
2) I changed my BG to plain dark/blue which IMO clears the desktop (and probably saves some X resources).
3) The desktop icons- I've moved them around a bit, isn't this better? I've renamed some of them, and capitalised all of them. I've added a black outline to all of them.

I suggest that the next Puppy will use JWM's launcher feature, consider a plain background as a default, and clean up the desktop icons.
[color=#4682B4]Lior Tubi[/color]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

:D Good news and well done. I hope we will have it in 1.0.9?
Looking good :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

Lior,
Okay, have removed the tray tab from jwmrc-personal and jwmrc-personal2 files.

Can you post you post your .jwmrc, so I can examine your changes?

It's great how you're helping Joe, you guys are making JWM greater and
greater :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

Lior,
A problem!
I've just created a snapshot live-cd, but after JWM (v1.4) was running, the keyboard
was dead.
Well, not quite dead, running rxvt, everytime I pressed a key, the cursor flickered. This was a hint that the keyboard was working but something was
killing the characters.

So, I commented out this line in ~/.jwm/jwmrc-personal:

Code: Select all

<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>	
<Key key="F12">root</Key>
<!-- <Key key="Print">exec:mtpaintsnapshot.sh</Key> -->

<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root</Key>
<Key mask="A" key="F2">window</Key>
That fixed it, keyboard now working. Why?

User avatar
J_Rey
Posts: 273
Joined: Wed 04 May 2005, 20:08
Location: Northwest Florida, U.S.A.
Contact:

#5 Post by J_Rey »

Well, for some reason the directional keys are "grabbed" twice. Does removing only these lines in ~/.jwm/jwmrc-personal fix the problem:

Code: Select all

<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
If so then JWM should check for duplicated key bindings and comment out those after the first occurance.

EDIT: After reading the JWM key bindings documentation, now I'm having second thoughts, but do test it. Confusing: The directional keys should not "be intercepted by the window manager" and "it is possible to bind multiple key combinations to the same action" (should be on the same line, then?).

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#6 Post by lior2b »

Damn, that was one hell of a bug :!:
I spent more than two hours trying to figure out what goes wrong for your system, and why mine works... I renamed pup001 and started a fresh Puppy, the print button stuck the keyboard too. I figured maybe it works for me because I'm using a self-hacked version of JWM, but no! So I returned to 1.4. and 1.4+patch, and 1.5. and 1.5 from the Subversion repos, but grrrr nothing worked! So I read again the code that handles keybindings... nothing seems wrong... damn! I started to freak out! OK, removing everything from .jwmrc except the <key> entry. Trying another keys, they work. Whats wrong with this?! dammmmmmmn!!! Meanwhile somthing went wrong with my ISP, so I can't google it... Returning to Ubuntu, replacing the pup001 with the old one, rebooting. Looking at my old .jwmrc. Starting all over again... Until...

It struck me!! I have a Hebrew keyboard... meaning I have a working Xkb... no wayyyyy that's the solution!!!! Copied the files in order to get a working Xkb, restarted X, and damn, that press on the printscreen never felt better... :roll:

Another good reason to include Xkb ahh?
[color=#4682B4]Lior Tubi[/color]

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#7 Post by lior2b »

OK I calmed down :D
I'm posting my .jwmrc files. Notes (jwmrc): I removed the xmms thing, it was only an example, and puppy doesn't come with xmms anyway... Added Rxvt launcher after the screenshot. The lancher icons are from http://tango-project.org/ . Changed the clock format after the screenshot, I'm regular to 24h format... Set all the fonts to Lucida Grande. (jwmrc-personal): Three desktops are enough for me, print key.
.jwmrc:

Code: Select all

<?xml version="1.0"?>

<JWM>
 <RootMenu label="Start" labeled="false" height="0">
...
 </RootMenu>

	<Group>
		<Class>Gaim</Class>
		<Option>sticky</Option>
	</Group>

	<!-- Additional tray attributes: autohide, width, border, layer, layout -->
	<Tray  autohide="false" insert="right" x="0" y="-1" border="1" height="26" >

		<!-- Additional TrayButton attribute: label -->
		<TrayButton label="Start" icon="start-here.png"/>
		<TrayButton popup="Show Desktop" icon="user-desktop.png">showdesktop</TrayButton>
		<TrayButton popup="Open Terminal" icon="mini-sh.xpm">exec:rxvt</TrayButton>
		<TrayButton popup="Browse" icon="applications-internet.png">exec:/usr/local/bin/defaultbrowser</TrayButton>

		<!-- Additional Pager attributes; width, height -->
		<Pager/>

		<!-- Additional TaskList attribute: maxwidth -->
		<TaskList/>

		<Dock/>

		<!-- Additional Swallow attribute: height -->
		<Swallow name="blinky">
			blinky -bg "#E0E5E0"
		</Swallow>

		<Swallow name="xload" width="32">
			xload -nolabel -bg "#BCBAB5" -fg red -hl white
		</Swallow>

		<Clock format=" %H:%M ">xclock</Clock>
	</Tray>

	<!-- Visual Styles -->

	<BorderStyle>
		<Font>Lucida Grande-12:regular</Font>
		<Width>5</Width>
		<Height>20</Height>
		<Foreground>black</Foreground>
		<Background>#E0E5E0</Background>
		<ActiveForeground>white</ActiveForeground>
		<ActiveBackground>#4A5966</ActiveBackground>
	</BorderStyle>

	<TaskListStyle>
		<Font>Lucida Grande-12:regular</Font>
		<ActiveForeground>white</ActiveForeground>
		<ActiveBackground>#8899A6</ActiveBackground>
	</TaskListStyle>

	<!-- Additional TrayStyle attribute: insert -->
	<TrayStyle>
		<Font>Lucida Grande-12:regular</Font>
		<Background>#E0E5E0</Background>
		<Foreground>black</Foreground>
	</TrayStyle>

	<PagerStyle>
		<Outline>black</Outline>
		<Foreground>#E0E5E0</Foreground>
		<Background>#888888</Background>
		<ActiveForeground>#8899AA</ActiveForeground>
		<ActiveBackground>#3A4956</ActiveBackground>
	</PagerStyle>

	<MenuStyle>
		<Font>Lucida Grande-12:regular</Font>
		<Foreground>black</Foreground>
		<Background>#E0E5E0</Background>
		<ActiveForeground>white</ActiveForeground>
		<ActiveBackground>#3A4956</ActiveBackground>
	</MenuStyle>

	<PopupStyle delay="600">
		<Font>Lucida Grande-10</Font>
		<Outline>black</Outline>
		<Foreground>black</Foreground>
		<Background>yellow</Background>
	</PopupStyle>

	<Icons>
		<IconPath>$HOME/.icons</IconPath>
		<IconPath>/usr/local/lib/X11/mini-icons</IconPath>
		<IconPath>/usr/local/lib/X11/pixmaps</IconPath>
	</Icons>

	<StartupCommand>
	</StartupCommand>

	<!-- Virtual Desktops -->
	<!-- Name tags can be contained within Desktops for desktop names. -->
	<Desktops count="4"/>

	<!-- Double click speed (in milliseconds) -->
	<DoubleClickSpeed>400</DoubleClickSpeed>

	<!-- Double click delta (in pixels) -->
	<DoubleClickDelta>2</DoubleClickDelta>

	<!-- The focus model (sloppy or click) -->
	<FocusModel>sloppy</FocusModel>

	<!-- The snap mode (none, screen, or border) -->
	<SnapMode distance="10">border</SnapMode>

	<!-- The move mode (outline or opaque) -->
	<MoveMode>opaque</MoveMode>

	<!-- The resize mode (outline or opaque) -->
	<ResizeMode>opaque</ResizeMode>

	<!-- Key bindings -->
	<Key key="Up">up</Key>
	<Key key="Down">down</Key>
	<Key key="Right">right</Key>
	<Key key="Left">left</Key>
	<Key key="h">left</Key>
	<Key key="j">down</Key>
	<Key key="k">up</Key>
	<Key key="l">right</Key>
	<Key key="Return">select</Key>
	<Key key="Escape">escape</Key>

	<Key mask="A" key="Tab">next</Key>
	<Key mask="A" key="F4">close</Key>
	<Key mask="A" key="#">desktop#</Key>
	<Key mask="A" key="F1">root</Key>
	<Key mask="A" key="F2">window</Key>

	<Include>/root/.jwm/jwmrc-personal</Include>
</JWM>
.jwmrc-personal:

Code: Select all

<!-- Personally configurable options for JWM: these override default settings and theme settings -->

<JWM>

<!-- Number of virtual desktops -->
<Desktops count="3"/>

<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>

<!-- Double click delta (in pixels) -->
<DoubleClickDelta>2</DoubleClickDelta>

<!-- The focus model (sloppy or click) -->
<FocusModel>click</FocusModel>

<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">none</SnapMode>

<!-- The move mode (outline or opaque) -->
<MoveMode>outline</MoveMode>

<!-- The resize mode (outline or opaque) -->
<ResizeMode>outline</ResizeMode>


<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>   
<Key key="F12">root</Key>
<Key key="Print">exec:mtpaintsnapshot.sh</Key>

<Key mask="A" key="Tab">next</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="F10">maximize</Key>
<Key mask="A" key="F6">minimize</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="A" key="F1">root</Key>
<Key mask="A" key="F2">window</Key>

</JWM>
[color=#4682B4]Lior Tubi[/color]

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#8 Post by Nathan F »

Has JWM always had this launcher capability? I've never seen it before, but I'd definately second the thought that it should be used. It would go a long way (for me) towards making me want to switch back from icewm.

Nathan
Bring on the locusts ...

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

wow that's great news!

#9 Post by gliezl »

I always use fvwm95 as my window manager but because of the fixes made in jwm, i think i'll make a shift. :-)
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#10 Post by BarryK »

lior2b wrote: It struck me!! I have a Hebrew keyboard... meaning I have a working Xkb... no wayyyyy that's the solution!!!! Copied the files in order to get a working Xkb, restarted X, and damn, that press on the printscreen never felt better... :roll:

Another good reason to include Xkb ahh?
But I thought the cut-down xkb in 1.0.8r1 is working for standard us layout?
That's what I've got.
But, I guess there must be something wrong with it.

User avatar
eMeRy
Posts: 86
Joined: Sun 22 Jan 2006, 20:22
Location: Hungary,Europe

#11 Post by eMeRy »

FYI
I've got the original xkb which came with v1.08 puppy.
The 'print screen' tweak doesn't work for me (hu keyboard variant, puppy installed to hd)

off:
Though I'm happy that Lior polished the jwm, I don't mind the lack of this feature. :roll:

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#12 Post by lior2b »

But I thought the cut-down xkb in 1.0.8r1 is working for standard us layout?
That's what I've got.
But, I guess there must be something wrong with it.
Actually, I don't think it works at all... X probably fallbacks to it's default US layout (which probably doesn't include the print button)...

eMeRy, thanks for checking... this feature isn't very important to users who know the screenshot menu entry, but for new users, it is just the expected behaviour...
[color=#4682B4]Lior Tubi[/color]

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#13 Post by Nathan F »

I know this is an old thread, but did we ever get a good, small, working xkb folder?

Nathan
Bring on the locusts ...

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#14 Post by pakt »

Nathan F wrote:I know this is an old thread, but did we ever get a good, small, working xkb folder?
Yes, I sent it directly to Barry. It is being used in Puppy2alpha-11apr with success.

I'll upload it for you here :)

Paul
Attachments
xkb_minimum.tar.gz
Working minimum xkb folder
(111.39 KiB) Downloaded 389 times
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#15 Post by Nathan F »

Thanks, it'll also be going in the community 109 iso if you don't mind.

Nathan
Bring on the locusts ...

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#16 Post by pakt »

Sounds good :)
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

Post Reply