View Single Post
Old 10-03-2012, 10:10 AM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Cool Put Cursors on a kindle (KINDLE 5.x)

So. Um why might you want this exactly???

well. think of a crazy world where usb devices might actually be pluggable into devices with usb slots.

Like a mouse in say a kindle.

Cursor would be handy at that point.
Or using a vnc client (with no helpful settings) also helpful.
or typing via vnc onto the OSKb (since odd letters are prepended in some clients)

now: "X Theming" does not work since XCB does not support xcursor yet.
well to a certain degree. (Actually "Themes" can be made to work a bit but I digress.)

We just want a cursor set - the defaults will do...

For this you would need:

Root Access. An updated cursor file.

Ideally also the xsetroot tool would be nice

I have read through
Quote:
Note on Cursor Themes not Working with Awesome Window Manager

Xcursor does not work correctly with Awesome Window Manager. You may notice all of the themed cursors work except the default cursor.

http://awesome.naquadah.org/wiki/FAQ...ursor_theme.3F
and the gist of it is:

a) find cursor files as bdf
b) run bdftopcf -o cursor.pcf cursor.bdf
c) splat it in cd /usr/share/fonts/X11/misc/


there is currently a symlink with the FULL PATH to emptycursor.pcf in there...

so

[root@kindle misc]# mntroot rw

scp the newcursor.pcf file to /usr/share/fonts/X11/misc/newcursor.pcf
(or whatever you do for file transfer)

[root@kindle root]# cd /usr/share/fonts/X11/misc/
[root@kindle misc]# ln -sbf /usr/share/fonts/X11/misc/newcursor.pcf cursor.pcf
[root@kindle misc]# mntroot ro

then [root@kindle misc]# killall Xorg

to see the new stuff load with a shiny cursor (left_ptr by default I think)

the change this you would
[root@kindle /]# xsetroot -cursor_name right_ptr

or whatever.

I'll attach:

cursor.bdf (DO NOT PUT THIS ON THE DEVICE, IT'S FOR REFERENCE)
newcursor.pcf - the cursors file

main app: (would live in /mnt/us/usr/bin)
xsetroot - you call this (in this case) to set the cursor with -cursor_name

supporting libs: (would live in /mnt/us/usr/lib)
Shared library: [libXmuu.so.1]
Shared library: [libX11.so.6]
Shared library: [libXcursor.so.1]
Shared library: [libc.so.6]

and maybe "one day" a shell script when I get round to it to run xsetroot with the libs automatically added to the path - OR

simply configure your system as outlined at
http://minimodding.com/article9-Kind...ng-custom-apps

and run [root@kindle upstart]# xsetroot -cursor_name left_ptr like I do.
(I've shoved mine in a startup file)

[root@kindle root]#cd; nano .bashrc
Quote:
export LD_LIBRARY_PATH=/mnt/us/usr/lib:/usr/lib:/lib:/mnt/us/lib
export PATH=/mnt/us/usr/local/bin:/mnt/us/usr/bin:/mnt/us/bin:\
/mnt/us/usr/sbin:/mnt/us/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:\
/mnt/us/home/root
# add some aliases for our busybox wangle
if [ -f /mnt/us/.alias ]; then
. /mnt/us/.alias
fi
#prevent the SS by default...
lipc-set-prop com.lab126.powerd preventScreenSaver 1
#setup the blank cursor by default...
xsetroot -cursor_name heart
More info:

You will also note that applications running vnc now will use the correct icons remotely (gvncviewer we are looking at you) - this benefit could be paired with creating/using a blank icon for the default on the device, thus providing the best of both worlds, no icon on device, icons via vnc.

Other notes:

There are great notes here on themes and their shortcomings with awesome
(I have a bunch built I could bundle them too)
https://wiki.archlinux.org/index.php/Cursor_Themes

Notes on injecting things like calls to xsetroot automatically (we have a lua solution) http://awesome.naquadah.org/wiki/Autostart

Cheers. Enjoy
Attached Thumbnails
Click image for larger version

Name:	Selection_047.png
Views:	158
Size:	6.7 KB
ID:	93294   Click image for larger version

Name:	kindle:0.0 - GVncViewer_049.png
Views:	214
Size:	86.2 KB
ID:	93298   Click image for larger version

Name:	kindle:0.0 - GVncViewer_050.png
Views:	208
Size:	87.6 KB
ID:	93299   Click image for larger version

Name:	kindle:0.0 - GVncViewer_051.png
Views:	206
Size:	36.6 KB
ID:	93300  
Attached Files
File Type: gz cursor-files.tar.gz (10.4 KB, 85 views)
File Type: gz xsetroot-Kindle5.x-bins.tar.gz (640.8 KB, 95 views)

Last edited by twobob; 10-03-2012 at 12:18 PM. Reason: boldy looking plain, files, pics, examples
twobob is offline   Reply With Quote