Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The banana cursor.

License

NotificationsYou must be signed in to change notification settings

ful1e5/banana-cursor

Repository files navigation

A cursor was requested byu/JMT37. It is the most unique cursor ever crafted in Linux history.

build

Notes

  • All cursor's SVG files are found insvg directory or you can also find them onFigma.

shoutout-sponsors

  • 2024-07-21:04eb3aa Partitioned cursor build configuration into multiple files according to platform:build.toml ->configs/win_lg.build.toml,configs/win_rg.build.toml,configs/win_xl.build.toml,configs/x.build.toml.

BananaBanana GreenBanana BlueBanana Red

Cursor Sizes

Xcursor Sizes:

1620222428324048566472808896

Windows Cursor Size:

sizeRegular (× ²⁄₃)Large (× ⁴⁄₅)Extra-Large (× 1)
3221.333 → 2225.6 → 2632
483238.4 → 3948
6442.666 → 4351.2 → 5264
966476.8 → 7796
12885.333 → 86102.4 → 103128

Colors

Banana

  • Base Color -#FCD900 (Yellow)
  • Outline Color -#6D3C1B (Brown)

Banana Green

  • Base Color -#54F851 (Green)
  • Outline Color -#0C2608 (Dark Green)

Banana Blue

  • Base Color -#64CDCD (Blue)
  • Outline Color -#0E2026 (Dark Blue)

Banana Red

  • Base Color -#E16C6C (Red)
  • Outline Color -#1B0707 (Dark Red)

How to get it

Easiest Way

You can download lateststable &development releases fromRelease Page.

Installing Banana Cursor

Linux/X11

Installation:

tar -xvf Banana.tar.gz# extract `Banana.tar.gz`mv Banana~/.icons/# Install to local userssudo mv Banana /usr/share/icons/# Install to all users

Uninstallation:

rm~/.icons/Banana# Remove from local userssudo rm /usr/share/icons/Banana# Remove from all users

Windows

Installation:

  1. Unzip.zip file
  2. Open unziped directory in Explorer, andright click oninstall.inf.
  3. Click 'Install' from the context menu, and authorize the modifications to your system.
  4. Open Control Panel > Personalization and Appearance > Change mouse pointers,and selectBanana Cursors.
  5. Click 'Apply'.

Uninstallation:

Run theuninstall.bat script packed with the.zip archive

OR follow these steps:

  1. Go toRegistry Editor by typing the same in thestart search box.
  2. ExpandHKEY_CURRENT_USER folder and expandControl Panel folder.
  3. Go toCursors folder and click onSchemes folder - all the available custom cursors that areinstalled will be listed here.
  4. Right Click on the name of cursor file you want to uninstall; for eg.:Banana Cursors andclickDelete.
  5. Click 'yes' when prompted.

Build From Source

Prerequisites

  • Python version 3.7 or higher
  • clickgen>=2.2.5 (pip install clickgen)
  • yarn

Quick start

  1. Installbuild prerequisites on your system
  2. git clone https://github.com/ful1e5/banana-cursor
  3. cd banana-cursor
  4. yarn install
  5. yarn generate
  6. SeeInstalling Banana Cursor.

Getting Started

Once you have thebuild prerequisites installed, You can personalize colors,customize sizes, change target platforms, and more. This process involves using external tools,as this repository only contains SVG files and configuration for these tools:

  • cbmp: Used for customizing colors and generating PNG files.
  • ctgen: Used for customizing sizes and building XCursor and Windows Cursors.

You can refer to the README of each tool for more information on their command-line options.

Crafting Your Banana Cursor

The process of creating custom cursor themes involves two main steps:

  1. Rendering SVG files to PNG files.
  2. Building cursor themes from PNG files.

Customize Colors

cbmp provides three options for changing colors:

  1. -bc: Base color, which replaces the#00FF00 color in the SVG.
  2. -oc: Outlined color, which replaces the#0000FF color in the SVG.
  3. -wc (optional): Watch Background color, which replaces the#FF0000 color in the SVG.
npx cbmp [...] -bc"<hex>" -oc"<hex>" -wc"<hex>"

Alternatively, you can provide a JSON configuration file to render SVG files, which contains a sequence ofcbmp commands:

npx cbmp render.json

Customize Sizes

Customize Windows Cursor size

To build Windows cursor with size16:

ctgen configs/x.build.toml -s 16 -p windows -d"bitmaps/Banana" -n"Banana" -c"The Banana XCursors with size 16"

You can also customize output directory with-o option:

ctgen configs/win_xl.build.toml -s 16 -p windows -d"bitmaps/Banana" -o"out" -n"Banana" -c"The Banana Windows Cursors with size 16"
Customize XCursor size

To build XCursor with size16:

ctgen configs/x.build.toml -s 16 -p x11 -d"bitmaps/Banana" -n"Banana" -c"The Banana XCursors with size 16"

You can also assign multiple sizes toctgen for XCursors build:

ctgen configs/x.build.toml -s 16 18 24 32 -p x11 -d"bitmaps/Banana" -n"Banana" -c"The Banana XCursors with size 16"

Examples

Lets generate Banana Cursor with green and black colors:

npx cbmp -d"svg" -o"bitmaps/Banana-Hacker" -bc"#00FE00" -oc"#000000"

After rendering custom color you have to build cursor throughctgen:

ctgen configs/x.build.toml -d"bitmaps/Banana-Hacker" -n"Banana-Hacker" -c"Green and Black Banana XCursors."

Afterwards, Generated theme can be found in thethemes directory.

Banana Gruvbox
npx cbmp -d"svg" -o"bitmaps/Banana-Gruvbox" -bc"#282828" -oc"#EBDBB2"ctgen configs/x.build.toml -d"bitmaps/Banana-Gruvbox" -n"Banana-Gruvbox" -c"Groovy Banana XCursors."ctgen configs/win_rg.build.toml -d"bitmaps/Banana-Gruvbox" -n"Banana-Gruvbox" -c"Groovy Banana Windows Regular Cursors."ctgen configs/win_lg.build.toml -d"bitmaps/Banana-Gruvbox" -n"Banana-Gruvbox" -c"Groovy Banana Windows Large Cursors."ctgen configs/win_xl.build.toml -d"bitmaps/Banana-Gruvbox" -n"Banana-Gruvbox" -c"Groovy Banana Windows Extra Large Cursors."
Banana Solarized Dark
npx cbmp -d"svg" -o"bitmaps/Banana-Solarized-Dark" -bc"#002b36" -oc"#839496"ctgen configs/x.build.toml -d"bitmaps/Banana-Solarized-Dark" -n"Banana-Solarized-Dark" -c"Solarized Dark Banana XCursors."ctgen configs/win_rg.build.toml -d"bitmaps/Banana-Solarized-Dark" -n"Banana-Solarized-Dark" -c"Solarized Dark Banana Windows Regular Cursors."ctgen configs/win_lg.build.toml -d"bitmaps/Banana-Solarized-Dark" -n"Banana-Solarized-Dark" -c"Solarized Dark Banana Windows Large Cursors."ctgen configs/win_xl.build.toml -d"bitmaps/Banana-Solarized-Dark" -n"Banana-Solarized-Dark" -c"Solarized Dark Banana Windows Extra Large Cursors."
Banana Solarized Light
npx cbmp -d"svg" -o"bitmaps/Banana-Solarized-Light" -bc"#839496" -oc"#002b36"ctgen configs/x.build.toml -d"bitmaps/Banana-Solarized-Light" -n"Banana-Solarized-Light" -c"Solarized Light Banana XCursors."ctgen configs/win_rg.build.toml -d"bitmaps/Banana-Solarized-Light" -n"Banana-Solarized-Light" -c"Solarized Light Banana Windows Regular Cursors."ctgen configs/win_lg.build.toml -d"bitmaps/Banana-Solarized-Light" -n"Banana-Solarized-Light" -c"Solarized Light Banana Windows Large Cursors."ctgen configs/win_xl.build.toml -d"bitmaps/Banana-Solarized-Light" -n"Banana-Solarized-Light" -c"Solarized Light Banana Windows Extra Large Cursors."
Banana Dracula
npx cbmp -d"svg" -o"bitmaps/Banana-Dracula" -bc"#282a36" -oc"#f8f8f2"ctgen configs/x.build.toml -d"bitmaps/Banana-Dracula" -n"Banana-Dracula" -c"Dracula Banana XCursors."ctgen configs/win_rg.build.toml -d"bitmaps/Banana-Dracula" -n"Banana-Dracula" -c"Dracula Banana Windows Regular Cursors."ctgen configs/win_lg.build.toml -d"bitmaps/Banana-Dracula" -n"Banana-Dracula" -c"Dracula Banana Windows Large Cursors."ctgen configs/win_xl.build.toml -d"bitmaps/Banana-Dracula" -n"Banana-Dracula" -c"Dracula Banana Windows Extra Large Cursors."

Testing Cursor

There are several websites that allow you to test your cursor states by hovering over buttons. This can be very useful when developing or verifying the behavior of a cursor. The following websites cover many of the most commonly used cursors, although they may not include all available options.

For a blueprint for creating XCursors, you may also want to refer toCursor-demo.

Bugs

Bugs should be reportedhere on the Github issues page.

Getting Help

You can create aissue, I will help you.

Contributing

CheckCONTRIBUTING.md, any suggestions for features and contributions to the continuing code masterelopment can be made via the issue tracker or code contributions via aFork &Pull requests.


[8]ページ先頭

©2009-2025 Movatter.jp