ice-wm / icewm

IceWM releases only, see Wiki
https://github.com/ice-wm/icewm/releases
Other
289 stars 16 forks source link

icewm does not recognise custom xpm mouse files #45

Closed clemencyworld1 closed 3 years ago

clemencyworld1 commented 3 years ago

It was working before but after a reinstall i could not use my themed cursor files again. The ones I downloaded from the net works but the ones I created in gimp do not work any longer.

Running icewm from terminal using my configured theme gives this error:

**IceWM: Warning: Invalid cursor pixmap: "/home/clemency/.icewm/themes/22oz/cursors/left.xpm" contains too many unique colors IceWM: Unknown keyword for a non-container: 'Win95Keys'. Expected either 'key' or 'runonce' here. IceWM: A window manager is already running, use --replace to replace it cursors.zip

**_

I have tried removing all colours from the cursor files but still do not work. i don't know how to create cursor files that can be recognised by icewm. But it worked before.

The cursor files I created are attached

clemencyworld1 commented 3 years ago

Sorry i attached the wrong files. I will update it soon

clemencyworld1 commented 3 years ago

cursors.zip This one does not work

gijsbers commented 3 years ago

At the moment the XPM based support for cursors only accepts mono cursors. That is like two-colors black and white. But you can disable the XPM support by editing config.h like follows and then recompile and reinstall and restart:

$ grep -i -e xpm -e imlib config.h
/* Define to enable imlib2 rendering. */
#define CONFIG_IMLIB2 1
/* Define to enable libxpm rendering. */
/* #define CONFIG_XPM 1 */

Then your beautiful colored cursors will work.

clemencyworld1 commented 3 years ago

i installed debian version over github version and its now working. Probably i missed something during compilation. do not know what i missed.

Debian verion alone did not give me icesound and icewmbg.

clemencyworld1 commented 3 years ago

At the moment the XPM based support for cursors only accepts mono cursors. That is like two-colors black and white. But you can disable the XPM support by editing config.h like follows and then recompile and reinstall and restart:

$ grep -i -e xpm -e imlib config.h
/* Define to enable imlib2 rendering. */
#define CONFIG_IMLIB2 1
/* Define to enable libxpm rendering. */
/* #define CONFIG_XPM 1 */

Then your beautiful colored cursors will work.

Ok. I will try that

gijsbers commented 3 years ago

You also need to define the hotspot in your cursor images. That is the sensitive spot of your cursor and the center of action. How to do that is explained in https://en.wikipedia.org/wiki/X_PixMap#XPM3.

clemencyworld1 commented 3 years ago

Yes, the cursors now show but still looks mono coloured. I think I can manage that. Thanks

clemencyworld1 commented 3 years ago

Thanks a lot. Am working on it now

On Wed, 31 Mar 2021 at 18:43, gijsbers @.***> wrote:

You also need to define the hotspot in your cursor images. That is the sensitive spot of your cursor and the center of action. How to do that is explained in https://en.wikipedia.org/wiki/X_PixMap#XPM3 .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ice-wm/icewm/issues/45#issuecomment-811283017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKBRKH7VPLFUNBOQF44GL33TGNNNHANCNFSM42BMIL4A .