[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How can I change form of cursor for some progs?



"Egor Tur" <worldeb@ukr.net> writes:

> I want to change form of cursor when I use some programme.
> Can I do this?
> For example, when I press the icons on my desktop, I want that
> cursor have form of watch (or other forms) until programme 
> (which I start in icon) set up.

You need to define "set up"; this isn't really a well-defined
concept.  You might go with "until the program maps a window", in
which case this script might work for you (untested):

  #!/bin/sh
  xsetroot -cursor_name watch
  xtoolwait "$@"
  xsetroot -cursor_name left_ptr

You need to install xtoolwait for this.  But then you'd set your
desktop icons to run this script with the desired program as a
command-line parameter.

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: