INSTALL 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # Comix Cursors installation instructions
  2. Basic Installation
  3. ------------------
  4. Requirements:
  5. - ImageMagick <http://www.imagemagick.org/>
  6. - librsvg <http://librsvg.sourceforge.net/>
  7. Download the ComixCursors sources from:
  8. <https://gitlab.com/limitland/comixcursors>
  9. Change into the download directory and unpack the sources::
  10. $ tar -xjvf ComixCursors-<version>.tar.bz2
  11. $ cd ComixCursors-<version>
  12. where “<version>” is the version you downloaded.
  13. When you have the required programs, issue::
  14. $ export MULTISIZE=true
  15. $ ./bin/build-cursors
  16. This will read the basic cursors from the SVG files, add a blurred and
  17. scaled shadow, tint the icons and compose them into a single PNG
  18. image.
  19. After all the images have been processed, you should invoke::
  20. $ make
  21. $ make install
  22. to create the xcursor files and install them into you personal cursors
  23. folder (‘$HOME/.icons/’).
  24. Not that some files (e.g. the shadow images) will be cached to reduce
  25. building overhead. So if you make changes in sources (e.g. edit the svg
  26. files) you might have to clean the working tree::
  27. $ make clean
  28. Making changes in the sources is not recommended, but if you need to,
  29. make sure to match colors and transformations as processed by the
  30. 'build-cursors' script. Read 'Customizing Cursors' below if you want to
  31. build a custom Cursor theme.
  32. If you want to remove the custom cursor theme from its installed location,
  33. invoke::
  34. $ make uninstall
  35. Customizing Cursors
  36. -------------------
  37. Apart from the actual SVG files, a lot of customization can be done
  38. while composing the images.
  39. All configuration options are in the ‘.CONFIG’ file for each theme.
  40. Each theme has one, and there is a ‘custom.CONFIG’ which is a template
  41. for you to copy and customise to build a custom theme.
  42. To start making a custom theme, choose a name and invoke::
  43. $ export THEMENAME="Purple-and-Green"
  44. $ make custom-theme
  45. The environment variable ‘THEMENAME’ will be used by each of the
  46. programs to know which theme you have specified. (This is why the
  47. ‘export’ command is necessary.) The above step will make the files
  48. ‘Purple-and-Green.CONFIG’ and ‘Purple-and-Green.theme’ in the
  49. ‘ComixCursorsConfigs/’ directory, if they did not already exist. Edit
  50. each of these files to customise your new theme.
  51. The ‘$THEMENAME.CONFIG’ file configures the theme-specific behaviour of the
  52. ‘bin/render-cursor-image’ program. Run the program with no parameters for a
  53. list of options that can be specified.
  54. With version 0.8 teh cursors can be rendered as multisize xcursors. That's
  55. why the build process requires either the "MULTISIZE" environment variable
  56. or the "CURSORSIZE" environment variable::
  57. For single-size cursors use::
  58. $ unset MULTISIZE
  59. $ export CURSORSIZE=40
  60. For the multisize version use::
  61. $ export MULTISIZE=true
  62. The ‘bin/render-cursor-image’ program is used by the ‘bin/build-cursors’
  63. program, so when you want to batch-process the SVG source images you can
  64. either add as many options to the command line as you want, or edit the
  65. default values in the ‘$THEMENAME.CONFIG’ file.
  66. Edit the custom files ‘ComixCursorsConfigs/$THEMENAME.CONFIG’ and
  67. ‘ComixCursorsConfigs/$THEMENAME.theme’ files to your liking. Then build and
  68. install your custom cursor theme invoking::
  69. $ ./bin/build-cursors
  70. $ make
  71. $ make install
  72. If you want to remove your custom cursor theme from its installed location,
  73. invoke::
  74. $ make uninstall
  75. Complete Installation
  76. ---------------------
  77. To install all the original ComixCursors issue::
  78. $ ./install-all
  79. which will process all the configurations in the
  80. ComixCursorsConfigs directory and install all cursor
  81. sets provided into your ~/.icons directory.
  82. If you want to remove all the original ComixCursors from its installed
  83. location, invoke::
  84. $ ./install-all -u
  85. System Installation
  86. -------------------
  87. For system-wide installation you need to copy the cursor-
  88. directories to you X11 lib directory. Issue these commands::
  89. $ whereis X11
  90. $ man 3 xcursor
  91. $ cd /usr/share/icons
  92. $ sudo cp -r ~/.icons/ComixCursors* .
  93. Now this will interfere with the cursor theme in your ~/.icons
  94. directory, which will have precedence. You will want to rename
  95. the cursors directory and edit the index.theme file inside.
  96. If you want to make this theme the system-wide default, edit
  97. the file /etc/sysconfig/windowmanager to read::
  98. X_MOUSE_CURSOR="ComixCursors-White-Regular-Slim"
  99. or whatever your (custom) cursors directory is named.
  100. You can also download pre-built RPMs from <http://limitland.de>
  101. and install them with::
  102. $ sudo rpm -Uv ComixCursors-<version>.noarch.rpm
  103. ..
  104. Local variables:
  105. coding: utf-8
  106. mode: text
  107. mode: rst
  108. End:
  109. vim: fileencoding=utf-8 filetype=rst :