You are not logged in.

#1 2012-04-10 11:10:27

work
Member
Registered: 2012-03-25
Posts: 40

[SOLVED] How can I change cursor on-the-fly?

How can I change cursor on-the-fly? I would like to do it with a script (bash?)
Thank you

Last edited by work (2012-04-10 12:08:16)

Offline

#2 2012-04-10 11:30:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [SOLVED] How can I change cursor on-the-fly?

man xsetroot


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-04-10 12:08:06

work
Member
Registered: 2012-03-25
Posts: 40

Re: [SOLVED] How can I change cursor on-the-fly?

Trilby wrote:

man xsetroot

I appreciate your advice, I tried it (I used this guide too: http://pissedoffadmins.com/?p=155).
It worked. Thank you

Offline

#4 2012-04-10 12:45:42

work
Member
Registered: 2012-03-25
Posts: 40

Re: [SOLVED] How can I change cursor on-the-fly?

It doesn't work on-the-fly with all the applications, but If I use LXAppearance I can do it.
Do you have any suggestion for that? Maybe this is something GTK+ 2-related. Thank you.

Last edited by work (2012-04-10 13:09:35)

Offline

#5 2012-04-10 13:22:41

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] How can I change cursor on-the-fly?

I don't know how lxappearance does it without restarting X but if you really need a script, I guess you could create one that changes the 4th line from ~/.icons/default/index.theme (or one that replaces the file altogether), and then restart X.

https://wiki.archlinux.org/index.php/X1 … sor_Themes

There's a method that uses ~/.Xresources but apparently it also needs an X restart for the changes to take effect (link).

Last edited by DSpider (2012-04-10 13:25:24)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-04-10 13:44:32

work
Member
Registered: 2012-03-25
Posts: 40

Re: [SOLVED] How can I change cursor on-the-fly?

DSpider wrote:

I don't know how lxappearance does it without restarting X but if you really need a script, I guess you could create one that changes the 4th line from ~/.icons/default/index.theme (or one that replaces the file altogether), and then restart X.

https://wiki.archlinux.org/index.php/X1 … sor_Themes

There's a method that uses ~/.Xresources but apparently it also needs an X restart for the changes to take effect (link).

Thank you, unfortunately it needs to restart X.
I gave a look at LXAppearance code, available on git (http://lxde.git.sourceforge.net/git/git … ;a=summary) under GNU General Public License I suppose, but I didn't get it.

Offline

Board footer

Powered by FluxBB