Thread: [Fremantle Maemo5] GoldenDict on Easy Debian
View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#6
Confirmed.

I broke that function or rather never implemented it in my images. So images based on mine most likely suffer from this problem too.

Please do the following:

1. Install the packages xbindkeys and x11-utils in Easy Debian.
(Note that I once intentionally removed xbindkeys in my Wheezy images because it went crazy and drained the battery within hours with high CPU spikes every few milliseconds that also only lasted a few milliseconds. It might be hard to track that down.)

2. Within Easy Debian create an xbindkeys configuration that contains this:
Code:
# Set Debian HW Keys
"sh /path/to/qoles/script"
  m:0x80 + c:36
3. Still in Easy Debian, save qole's script to the path you just specified in the xbindkeys configuration. Delete the sudo commands (they are not needed anyways and since my images have no sudo this would even prevent the script from working). So the script should essentially look like this:
Code:
ACTIVEWINID=`xprop -root | awk '/NET_ACTIVE_WINDOW/ { print $5; exit }'`
echo $ACTIVEWINID
/sbin/qobi-wmhint-fix $ACTIVEWINID
/usr/bin/set-focus $ACTIVEWINID
Now running "Set Deb HW Keys" from Maemo should run xbindkeys in Easy Debian, which in turn sets the focus to the currently active window when pressing Fn (actually Iso_Level_3_Shift) + Return (actually KP_Enter).
For me it works with goldendict. I will implement it in my next images, unless I forget it.
 

The Following 3 Users Say Thank You to sulu For This Useful Post: