
FlopCursors
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is actually not a cursors theme, but a script which will vertically mirror all cursors in sources for a cursors theme, including adjusting the hotspots. I recently noticed somebody asking if there exist any left handed cursor themes, and since the script is a piece of cake, I just did it :).
Usage:
1) Enter top directory of sources for a cursors theme.
2) Run the script.
3) Change the name of the theme to include 'Left' or 'RTL' or whatever.
4) Build the cursors theme, normally as you would do without doing steps 2) and 3).
The script vertically mirrors all png images in the directory and subdirectories, using 'convert -flop' from ImageMagick (required to be installed), and also adjusts all .conf files.
Problems: Simply vertically mirroring all cursors may not be sufficient. For example, with the CrystalCursors theme, there are problems with 3 icons:
- watch (wait cursor showing clock) - the clock will go counter-clockwise. All watch* files in the source directory should be backed up and restored after the script is run. This is obviously only a problem with the animated version of the theme.
- left_ptr_watch (arrow and clock cursor) - the same problem, but the arrow needs to be mirrored. The problem can be solved by adjusting the order of png pictures in the .conf file.
- question_arrow (what's this cursor) - the png image needs to be fixed using image editting program (e.g. KolourPaint), so that the cursor is mirrored but the question mark is not.
(Note: the form doesn't allow uploading .sh files, so the file is .gz compressed.)
dogleg
16 years ago
Change the line
for i in `find . -name *.png`; do
to
for i in `find . -name '*.png' -not -regex .*corner.*`; do
and the line
for i in `find . -name *.conf`; do
to
for i in `find . -name '*.conf' -not -regex .*corner.*`; do
This will exclude anything with 'corner' in its name being flipped.
Report
Flendor
16 years ago
It was probably a very basic thing, but everyone starts as newbies like me :)
Note: Works well with Gronuation.
Report