keyboard shortcuts: change desktop

Booting, installing, newbie
Message
Author
Bruce B

#31 Post by Bruce B »

DaveS wrote:Thanks for all the help anyways. Its not any kind of critical problem really. The ffmpeg/winff/missing codecs is a far bigger problem for me to solve as it actually determines whether the distro works for me or not.....
http://www.murga-linux.com/puppy/viewto ... 133#244133
Once again, I crashed and burned.
Dave,

If you don't take the time to make a clink lickable, why should others take more time than it would have you to make them lickable, to manually do what should be doable with a mouse click?

So, I'm posting, not knowing what gems were in the clink.

I discovered 4.00 absent:

cjpeg
djpeg
jpegtran

So I took them from 3.01 and added them to 4.00. You might have to do something along the same lines.

Bruce

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#32 Post by DaveS »

http://www.murga-linux.com/puppy/viewto ... 133#244133
Bruce, your post pushed me into figuring out how to make a live link. Much easier than I thought.................

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#33 Post by DaveS »

Cool, it even works...............

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#34 Post by Béèm »

That's what tags are for.
And you can make it even nicer.

Type click, highlight it and push the URL tag.
You'll get click
Edit to see click
Leave the cursor just after the = and copy the link you like to reference there.

Try it, you'll see it.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

brymway
Posts: 407
Joined: Sun 09 Dec 2007, 01:08

#35 Post by brymway »

Thanks to this thread I now have "F" keys opening commonly used applications. Or rather I should say I now know how to change my jwm .rc file to add whatever "F" key shortcuts I choose.

Thanks.
[url]http://wellminded.com/puppy/pupsearch.html[/url]

Rickrandom
Posts: 195
Joined: Sat 21 Jan 2006, 05:35
Location: Bedfordshire, UK

#36 Post by Rickrandom »

I'd like my Windows key to bring up the menu, so did the XEV thing with F1 and the Windows key. In case it's relevant, it records the data twice for one key press.

F1 gives about 5 lines, including:

Code: Select all

keycode 67 (keysym 0xffbe, F1)
whereas the left Windows key (the only one on this laptop) gives:

Code: Select all

keycode 115 (keysym 0x0, NoSymbol)
I had previously copied the suggested Super_L line for the Windows key as below, but no joy, even after restarting JWM.

Code: Select all

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

<JWM>

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

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

<!-- Double click delta (in pixels) -->
<DoubleClickDelta>3</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:3</Key>
<Key key="Super_L">root:1</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:3</Key>
<Key mask="A" key="F2">window</Key>

</JWM>
Is there some syntax that will allow the use of the 115 value instead of the missing symbol?

I have tried:

Code: Select all

<Key key=115>root:1</Key>
but no effect. F12 does bring up the menu, but I'd just like to be consistent with the Windows machine I have to use for work.

Thanks in advance.

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#37 Post by alienjeff »

After rereading the JWM docs, reconfiguring, and testing, I've found what you need. From the docs: "keycode may be specified instead of key if the key code is known but the key is not (or there is no symbol for the key code)"

So try this:

Code: Select all

<Key keycode="115">root:1</Key>
And don't forget:

1) the quotation marks around 115

2) run jwm -p

3) if all okay, run jwm -restart
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

Rickrandom
Posts: 195
Joined: Sat 21 Jan 2006, 05:35
Location: Bedfordshire, UK

#38 Post by Rickrandom »

<Key keycode="115">root:3</Key>

now working. Thanks.

Where did you find that info? (So that next time I can try to be a little more self-sufficient rather than crying for help :oops: )

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#39 Post by CatDude »

Rickrandom wrote: Where did you find that info? (So that next time I can try to be a little more self-sufficient rather than crying for help :oops: )
You will find that information Here

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

newtolinux89
Posts: 11
Joined: Fri 10 Oct 2008, 20:22

it worked for me

#40 Post by newtolinux89 »

download the xev.zip file above. extract it to / . Then in the console type /xev . When it opens press the button you would like to recognize, and it will give you a "keycode". remember the code and open up /root/.jwm/jwmrc-personal . Under the "<!-- Key bindings -->" insert this line, using your keycode. (mine is "133")
<Key keycode="133">maximize</Key>

There you go. If you cant just click on the jwmrc-personal file to open it. right click on it click file and then set run action. then enter this --> defaulttexteditor "$1" <-- (without the arrows) then click use command. Be sure to save the jwmrc file after you edit it. the go to the "menu" on the desktop go to shutdown and click "Restart JWM"

I hope this works. For more codes go to http://joewing.net/programs/jwm/config.shtml#keys

lilleguard-liste
Posts: 42
Joined: Thu 29 May 2008, 12:04
Location: Loppa (Norway)

#41 Post by lilleguard-liste »

This is how I test my keyboard to see if the windows key is identified:

1) Right click on a desktop icon (for instance "browse")
2) Left click on the text "(click to set)"
3) Choose desired shortcut key combination, i.e. "windows key" + b
4) If this gives a result like "Super+b" or "Hyper+b" or "Super+Hyper+b" you know that the keyboard is set up right.

Myself I had to change keyboard layout from Generic 101 to Generic 105 to use my windows key. You change keyboard layout in Menu > Setup. And you can add JWM shortcuts with Menu > Desktop > JWM Configuration.

nue
Posts: 17
Joined: Sun 28 Dec 2008, 14:19

#42 Post by nue »

Newbie to Linux here too, just downloaded a preconfigured puplet and I can't find any threads or information where the default shortcuts are specified, so I guess I'll ask here instead. Anyone point me in the right direction? And how to change/set them?

liro

#43 Post by liro »

Is it possible to use these shortcuts in the JWM configuration to assign a key to output a certain string of text? If so, what would you put in the "action" field to achieve this?

Thanks.

Post Reply