![]() |
2011-10-13
, 14:01
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#2
|
![]() |
2011-10-14
, 11:21
|
|
Posts: 381 |
Thanked: 336 times |
Joined on Jan 2011
@ Stockholm, Sweden
|
#3
|
If someone wants to explain to me how to package it as a deb, or how to send the source to the autobuilder,
The Following User Says Thank You to electroaudio For This Useful Post: | ||
![]() |
2011-10-14
, 19:37
|
Posts: 127 |
Thanked: 17 times |
Joined on Jul 2010
@ stockton
|
#4
|
![]() |
2011-10-14
, 20:18
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#5
|
The Following 2 Users Say Thank You to Addison For This Useful Post: | ||
![]() |
2011-10-14
, 23:44
|
Posts: 127 |
Thanked: 17 times |
Joined on Jul 2010
@ stockton
|
#6
|
![]() |
2011-10-15
, 00:35
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#7
|
![]() |
2011-10-15
, 11:37
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#8
|
what exactly is your error message? I have it installed and it works just fine
(enable extras-devel after reading the warning well and then apt-get install xdotool)
![]() |
2011-10-15
, 11:40
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#9
|
dpkg -i whatever.deb
The Following User Says Thank You to qwazix For This Useful Post: | ||
xdotool.tar
I put them in:
/usr/bin/xdotool
/usr/lib/libxdo.so
/usr/lib/libxdo.so.2
/usr/include/xdo.h
So as root, unpack them there if you know what you're doing enough to fiddle with xdotool, but not enough to play with file paths. Near as I can tell, they have to be in the same folders, until you hit the last folder. Then they split into bin, lib, and include.
I'm not sure if I even need xdo.h. I did not include the man file in the above, because, well, lazy, but if someone wants it, I suppose I can dump that here too.
I have searched www.maemo.org/packages, and I used power search, for xdotool and I haven't found it yet - so if it's buried somewhere and common knowledge, my apologies. The only references to xdotool I see are when talking about Easy Debian, which makes me presume it's the Debian package in the chroot, not for the N900 itself.
To be clear, I have barely tested this at all. This is not optified (wouldn't know where to start), and for all I know your N900 will burn a horrible death upon use.
I have thus far tested the one thing I wanted xdotool for: xdotool key(up/down)
That works - in X-Terminal (only place I tested it). I have succesfully enabled auto-rotation from command-line using:
Why did I even bother? Because about 3 months ago, I was working on an auto-rotating conky.conf file. Everything worked perfectly, except for the part where I couldn't auto-enable auto-rotation, and the dev never compiled conky with the auto-rotation flag set to true. I asked this: http://talk.maemo.org/showthread.php?t=64816 No one replied, I spent a bunch of time banging my head on walls, etc. But I was a newb then.
As time passed, I developed my coding skills enough to install scratchbox on my debian virtual machine, get comfortable with compiling, and so on. Then, recently, I fiddled with some dbus scripts to get some keyboard short-cuts for myself. This inspired me to come back to the auto-rotation thing. I started seeing if I could see if I could send keypresses over dbus. I haven't figured that bit out yet, though I'm sure it's possible, but meh. At some point I finally looked at the shortcutd source code, to see if I could get ideas, and realized it was using some weird XTest stuff I never heard of. Looking around, I realized it was a library for X itself. I had no clue how to call functions from that library from the command-line either, but I DID stumble upon xdotool in the process. At first I didn't want to go through a whole special package just to enable it, but I thought, well, might as well.
Looking at the current hildon-desktop developments, this might be useless soon, for the one task I bothered installing it for myself for, as portrait mode seems to be getting progressively included into more parts of Hildon.
--- End backstory/rambling ---
Anyway, the attached binaries are compiled from the source package found in the .tar.gz on this page, using "make all install": http://www.semicomplete.com/projects/xdotool/
It's a couple months more recent than the xdotool package in debian sid armel. For all I know, there's more recent versions available already compiled that will run on the N900, so if this is useless, well, it'll sink into obscurity, and oh well. If there's any actual demand for this to make it to the repositories, and I can figure out packaging and autobuilder and so on, I can use even more recent SVN sources for that.