Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 02 Sep 2015, 12:55
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
Found it! JWM glitch solution! (+some thoughts)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Mon 20 Mar 2006, 08:01    Post subject:  Found it! JWM glitch solution! (+some thoughts)  

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:


Now, some thoughts Smile 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.

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15154
Location: Paradox Realm

PostPosted: Mon 20 Mar 2006, 09:00    Post subject:  

Very Happy Good news and well done. I hope we will have it in 1.0.9?
Looking good Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7456
Location: Perth, Western Australia

PostPosted: Mon 20 Mar 2006, 19:49    Post subject:  

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 Very Happy
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7456
Location: Perth, Western Australia

PostPosted: Tue 21 Mar 2006, 09:18    Post subject:  

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:
<!-- 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?
Back to top
View user's profile Send private message Visit poster's website 
J_Rey


Joined: 04 May 2005
Posts: 276
Location: Northwest Florida, U.S.A.

PostPosted: Tue 21 Mar 2006, 10:50    Post subject:  

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

Code:

<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?).
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Tue 21 Mar 2006, 23:03    Post subject:  

Damn, that was one hell of a bug Exclamation
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... Rolling Eyes

Another good reason to include Xkb ahh?

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Tue 21 Mar 2006, 23:40    Post subject:  

OK I calmed down Very Happy
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:
<?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:
<!-- 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>

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 22 Mar 2006, 01:30    Post subject:  

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 ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
gliezl


Joined: 06 Aug 2005
Posts: 322
Location: Manila

PostPosted: Wed 22 Mar 2006, 02:59    Post subject: wow that's great news!  

I always use fvwm95 as my window manager but because of the fixes made in jwm, i think i'll make a shift. Smile
_________________
"If you have knowledge, let others light their candles in it."
~Margaret Fuller

Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7456
Location: Perth, Western Australia

PostPosted: Wed 22 Mar 2006, 10:36    Post subject:  

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... Rolling Eyes

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.
Back to top
View user's profile Send private message Visit poster's website 
eMeRy


Joined: 22 Jan 2006
Posts: 86
Location: Hungary,Europe

PostPosted: Wed 22 Mar 2006, 15:08    Post subject:  

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. Rolling Eyes
Back to top
View user's profile Send private message 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Wed 22 Mar 2006, 17:31    Post subject:  

Quote:
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...

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 18 Apr 2006, 02:10    Post subject:  

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

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1094
Location: Sweden

PostPosted: Tue 18 Apr 2006, 03:21    Post subject:  

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 Smile

Paul
xkb_minimum.tar.gz
Description  Working minimum xkb folder
gz

 Download 
Filename  xkb_minimum.tar.gz 
Filesize  111.39 KB 
Downloaded  303 Time(s) 

_________________
Puppy unofficial tester (off and on) since v0.9.2
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 18 Apr 2006, 09:29    Post subject:  

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

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1633s ][ Queries: 12 (0.0154s) ][ GZIP on ]