Page 1 of 1
Tahrpup keyboard shortcuts don't work at startup
Posted: Fri 08 Jan 2016, 07:30
by jimbo66
I'm new to Puppy (tahr 6.0.2) and I have a problem in that 2 of my 3 shortcuts don't work at startup, I have to restart windows manager ??? - the one that works at startup is #3. Some sort of JWM bug?
<Key mask="C" key="grave">exec:/usr/bin/libreoffice4.3 --calc -o /root/my-documents/jrs.ods</Key>
<Key mask="C" key="apostrophe">exec:/bin/sh /root/cmc</Key>
<Key keycode="115">exec:xdotool mousemove --polar 0 0</Key>
Posted: Fri 08 Jan 2016, 14:58
by bigpup
Have you done Quickpet->Info->Tahrpup updates?
If not, do so.
Also, install any offered service packs.
Reboot after doing the updates.
May have to redo the keyboard shortcuts setup.
There was a bug the update should fix.
Posted: Fri 08 Jan 2016, 22:04
by jimbo66
Thanks for the reply, problem persists. However, I can live with it for the moment, as I usually only boot once a week.
Posted: Sat 09 Jan 2016, 04:00
by bigpup
So you did do all the Tahrpup updates and it still is not working?
Posted: Sat 09 Jan 2016, 06:52
by jimbo66
Yes, did all the updates, still no joy. As a temporary get-around is there a console command to re-start jwm that I could put in a tray icon.?
Posted: Sat 09 Jan 2016, 08:34
by MochiMoppel
jimbo66 wrote: is there a console command to re-start jwm that I could put in a tray icon.?
This would be
but this would be only a work around without fixing the problem.
As none of your shortcuts are standards, I assume that they are saved in your pupsave file, right? I also take from your description that #1 and #2 work after you restart JWM, right?
If so then something is fishy with the way keysyms (like 'apostrophe' and 'grave') are assigned to keycodes. Since #3 works for you and #3 is the one defined by keycodes, you should try keycodes for #1 and #2.
Open a console and type
xev.
With the small window active type an apostrophe. You should see an output that looks like this:
Code: Select all
KeyRelease event, serial 36, synthetic NO, window 0x2c00001,
root 0xbd, subw 0x2c00002, time 23821408, (33,39), root:(434,577),
state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False
In above example (your output may differ) you see that 'apostrophe' is a symbolic name for keycode 48.
Now change you shortcut to
Code: Select all
<Key mask="C" keycode="48">exec:/bin/sh /root/cmc</Key>
and see if this works at startup.
Posted: Sat 09 Jan 2016, 09:52
by jimbo66
They're stored in /root/.jwm/jwmrc-personal, Pupsave happens automatically and regularly and I think at shutdown.
Thks for the restart, I will try using keycodes, should have thought of that.......
Even so, it's still a bug, and even though things that don't work bug me, it's only a once a week problem.
It's Saturday night here, so I may be away until Monday.
Thks again for the advice.
Posted: Sat 09 Jan 2016, 10:07
by jimbo66
Using keycodes worked....................thks