a transparent cursor theme for X11
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
5.5KB

  1. #!/bin/sh
  2. names=(
  3. "00000000000000020006000e7e9ffc3f" "default" "pirate"
  4. "00008160000006810000408080010102" "diamond_cross" "plus"
  5. "028006030e0e7ebffc7f7070c0600140" "dnd-ask" "pointer"
  6. "03b6e0fcb3499374a867c041f52298f0" "dnd-copy" "pointing_hand"
  7. "03b6e0fcb3499374a867d041f52298f0" "dnd-link" "progress"
  8. "0426c94ea35c87780ff01dc239897213" "dnd-move" "question_arrow"
  9. "043a9f68147c53184671403ffa811cc5" "dnd-no-drop" "right-arrow"
  10. "048008013003cff3c00c801001200000" "dnd-none" "rightbutton"
  11. "0876e1c15ff2fc01f906f1c363074c0f" "dot" "right_ptr"
  12. "08e8e1c95fe2fc01f976f1e063a24ccd" "dotbox" "right_side"
  13. "08ffe1cb5fe6fc01f906f1c063814ccf" "double_arrow" "right_tee"
  14. "08ffe1e65f80fcfdf9fff11263e74c48" "draft_large" "row-resize"
  15. "1081e37283d90000800003c07f3ef6bf" "draft_small" "rtl_logo"
  16. "14fef782d02440884392942c11205230" "draped_box" "sailboat"
  17. "208530c400c041818281048008011002" "e29285e634086352946a0e7090d73106" "sb_down_arrow"
  18. "2870a09082c103050810ffdffffe0204" "e-resize" "sb_h_double_arrow"
  19. "3085a0e285430894940527032f8b26df" "ew-resize" "sb_left_arrow"
  20. "38c5dff7c7b8962045400281044508d2" "exchange" "sb_right_arrow"
  21. "3ecb610c1bf2410f44200f48c40d3599" "f41c0e382c94c0958e07017e42b00462" "sb_up_arrow"
  22. "4498f0e0c1937ffe01fd06f973665830" "f41c0e382c97c0938e07017e42800402" "sb_v_double_arrow"
  23. "50585d75b494802d0151028115016902" "fcf1c3c7cd4491d801f1e1c78f100000" "se-resize"
  24. "5aca4d189052212118709018842178c0" "fcf21c00b30f7e3f83fe0dfd12e71cff" "shuttle"
  25. "5c6cd98b3f3ebcb1f9c7f1c204630408" "fd_double_arrow" "size_all"
  26. "6407b0e94181790501fd1e167b474872" "fleur" "size_bdiag"
  27. "640fb0e74195791501fd1ed57b41487f" "forbidden" "size_fdiag"
  28. "9081237383d90e509aa00f00170e968f" "gobbler" "size_hor"
  29. "9116a3ea924ed2162ecab71ba103b17f" "grabbing" "size_ver"
  30. "9d800788f1b08800ae810202380a0822" "gumby" "sizing"
  31. "a2a266d0498c3104214a47bd64ab0fc8" "half-busy" "spider"
  32. "alias" "hand" "split_h"
  33. "all-scroll" "hand1" "split_v"
  34. "arrow" "hand2" "spraycan"
  35. "b66166c04f8c3109214a4fbd64a50fc8" "h_double_arrow" "s-resize"
  36. "based_arrow_down" "heart" "star"
  37. "based_arrow_up" "help" "sw-resize"
  38. "bd_double_arrow" "ibeam" "target"
  39. "boat" "icon" "tcross"
  40. "bogosity" "iron_cross" "text"
  41. "bottom_left_corner" "leftbutton" "top_left_arrow"
  42. "bottom_right_corner" "left_ptr" "top_left_corner"
  43. "bottom_side" "left_ptr_watch" "top_right_corner"
  44. "bottom_tee" "left_side" "top_side"
  45. "box_spiral" "left_tee" "top_tee"
  46. "c07385c7190e701020ff7ffffd08103c" "link" "trek"
  47. "c7088f0f3e6c8088236ef8e1e3e70000" "ll_angle" "ul_angle"
  48. "cell" "lr_angle" "umbrella"
  49. "center_ptr" "man" "up_arrow"
  50. "circle" "middlebutton" "up-arrow"
  51. "clock" "mouse" "ur_angle"
  52. "closedhand" "move" "v_double_arrow"
  53. "coffee_mug" "ne-resize" "vertical-text"
  54. "color-picker" "nesw-resize" "wait"
  55. "col-resize" "no-drop" "watch"
  56. "context-menu" "not-allowed" "whats_this"
  57. "copy" "n-resize" "w-resize"
  58. "cross" "ns-resize" "X_cursor"
  59. "crossed_circle" "nw-resize" "X-cursor"
  60. "crosshair" "nwse-resize" "xterm"
  61. "cross_reverse" "openhand" "zoom-in"
  62. "d9ce0ab605698f320427677b458ad60b" "pencil" "zoom-out" )
  63. command -v xcursorgen >/dev/null && continue ||\
  64. { echo "xcursorgen not found"; exit 1; }
  65. cd $(dirname "$0")
  66. if [ -e cursors ] || [ -e source ]; then
  67. echo "clean folders..."
  68. if [ -e cursors ]; then
  69. rm -r cursors
  70. fi
  71. if [ -e source ]; then
  72. rm -r source
  73. fi
  74. fi
  75. mkdir cursors
  76. mkdir source
  77. echo "make pngs..."
  78. for n in "${names[@]}"; do
  79. cp blank.png source/$n.png
  80. done
  81. echo "make config files..."
  82. for n in "${names[@]}"; do
  83. echo "16 0 0 $n.png" > source/$n.cfg
  84. done
  85. echo "generating cursors..."
  86. cd source
  87. for n in "${names[@]}"; do
  88. xcursorgen $n.cfg ../cursors/$n
  89. done