Bibata_Cursor/README.md

368 lines
13 KiB
Markdown
Raw Normal View History

2021-11-20 04:29:40 -05:00
# Bibata Cursor
2020-09-05 01:19:03 -04:00
[![build](https://github.com/ful1e5/Bibata_Cursor/actions/workflows/build.yml/badge.svg)](https://github.com/ful1e5/Bibata_Cursor/actions/workflows/build.yml)
TLDR; This cursor set is the masterpiece of cursors available on the internet,
2022-10-03 08:39:46 -04:00
Hand designed by [Abdulkaiz Khatri](https://twitter.com/ful1e5).
2018-10-13 03:51:42 -04:00
Bibata is open source, compact, and material designed cursor set. This project masterelop for
improve cursor experience.
Bibata is one of the most popular cursors set in the Linux community so far and is now available
for freely with multiple colors and size options for Windows as well. The aim of this project is to
provide the personalized cursors to users.
![Bibata Amber](https://i.imgur.com/2DEYWDC.png)
![Bibata Classic](https://i.imgur.com/C8mMQ3j.png)
![Bibata Ice](https://i.imgur.com/ovzTw6u.png)
> **Note**
> All cursor's `.svg` files are found in [svg](./svg) directory or you can also find them on
> [Figma](https://www.figma.com/file/Y9RKZLXhSvaxpUzsKGJkp6/Bibata-Cursor?node-id=0%3A1).
## Variants:
- **Bibata Original Amber:** Yellowish and sharp edge bibata cursors.
- **Bibata Modern Amber:** Yellowish and rounded edge bibata cursors.
- **Bibata Original Classic:** Black and sharp edge bibata cursors.
- **Bibata Modern Classic:** Black and rounded edge bibata cursors.
- **Bibata Original Ice:** White and sharp edge bibata cursors.
- **Bibata Modern Ice:** White and rounded edge bibata cursors
## Cursor Sizes
### Xcursor Sizes:
2020-08-13 02:28:01 -04:00
2020-10-06 03:10:35 -04:00
<kbd>22</kbd>
2020-08-13 02:28:01 -04:00
<kbd>24</kbd>
<kbd>28</kbd>
<kbd>32</kbd>
<kbd>40</kbd>
<kbd>48</kbd>
<kbd>56</kbd>
<kbd>64</kbd>
<kbd>72</kbd>
<kbd>80</kbd>
<kbd>88</kbd>
<kbd>96</kbd>
### Windows Cursor Size:
2020-08-13 02:28:01 -04:00
- <kbd>16x16</kbd> - Small
- <kbd>24x24</kbd> - Regular
- <kbd>32x32</kbd> - Large
- <kbd>48x48</kbd> - Extra Large
2021-11-20 04:29:40 -05:00
## Colors:
2020-11-14 06:39:26 -05:00
### Bibata Amber
2021-02-26 06:57:16 -05:00
- Base Color - `#FF8300` (Amber)
- Outline Color - `#FFFFFF` (White)
- Watch Background Color - `#001524` (Rich Black)
### Bibata Classic
- Base Color - `#000000` (Black)
- Outline Color - `#FFFFFF` (White)
- Watch Background Color - `#000000` (Black)
2020-11-14 06:39:26 -05:00
### Bibata Ice
- Base Color - `#FFFFFF` (White)
- Outline Color - `#000000` (Black)
- Watch Background Color - `#FFFFFF` (White)
## How to get it
### Easiest Way
You can download latest `stable` & `development` releases from
[Release Page](https://github.com/ful1e5/Bibata_Cursor/releases).
### Packages
2020-09-05 03:40:59 -04:00
> **Note**
> If you're having trouble with the packages please submit a request to the package maintainer
> before creating an issue.
2020-09-05 03:40:59 -04:00
#### Arch Linux/Manjaro
2020-09-05 03:40:59 -04:00
Arch Linux/Manjaro users can install from the [AUR](https://aur.archlinux.org/packages/bibata-cursor-theme)
currently maintained by [_@Shatur_](https://aur.archlinux.org/packages/?K=Shatur&SeB=m) &
[_@yochananmarqos_](https://aur.archlinux.org/packages/?K=yochananmarqos&SeB=m).
Can be installed via Pamac (preinstalled in Manjaro), Paru or any other
[AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers).
2020-09-05 03:40:59 -04:00
```bash
paru -S bibata-cursor-theme
2020-09-05 03:40:59 -04:00
```
Alternatively, Bibata binaries can be also installed using the PKGBUILD `bibata-theme-bin`,
available on the AUR.
#### Fedora
2020-09-05 03:40:59 -04:00
##### copr-repo by @peterwu (recommended)
2020-09-05 03:40:59 -04:00
2020-11-21 22:55:52 -05:00
```bash
sudo dnf copr enable peterwu/rendezvous
sudo dnf install bibata-cursor-themes
```
##### copr-repo by @muhalantabli
2020-11-21 22:55:52 -05:00
2020-09-05 03:40:59 -04:00
```bash
sudo dnf copr enable muhalantabli/copr-repo
sudo dnf install bibata-cursor-theme
```
## Installing Bibata Cursor
2020-09-05 08:07:56 -04:00
2020-09-05 01:12:54 -04:00
#### Linux/X11
**Installation:**
2020-09-05 01:12:54 -04:00
```bash
tar -xvf Bibata.tar.gz # extract `Bibata.tar.gz`
mv Bibata-* ~/.icons/ # Install to local users
sudo mv Bibata-* /usr/share/icons/ # Install to all users
```
2020-09-05 01:12:54 -04:00
**Uninstallation:**
2020-09-05 01:12:54 -04:00
```bash
rm ~/.icons/Bibata-* # Remove from local users
sudo rm /usr/share/icons/Bibata-* # Remove from all users
2020-09-05 01:12:54 -04:00
```
#### Windows
**Installation:**
1. Unzip `.zip` file
2021-02-26 06:57:16 -05:00
2. Open unziped directory in Explorer, and **right click** on `install.inf`.
2020-10-02 07:03:29 -04:00
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 select **Bibata Cursors**.
2020-09-05 01:12:54 -04:00
5. Click '**Apply**'.
**Uninstallation:**
2022-01-31 04:12:23 -05:00
Run the `uninstall.bat` script packed with the `.zip` archive
2022-01-31 04:12:23 -05:00
**OR** follow these steps:
2022-01-31 04:12:23 -05:00
1. Go to **Registry Editor** by typing the same in the _start search box_.
2. Expand `HKEY_CURRENT_USER` folder and expand `Control Panel` folder.
3. Go to `Cursors` folder and click on `Schemes` folder - all the available custom cursors that are
installed will be listed here.
4. **Right Click** on the name of cursor file you want to uninstall; for eg.: _Bibata Cursors_ and
click `Delete`.
2022-01-31 04:12:23 -05:00
5. Click '**yes**' when prompted.
## Build From Source
2019-11-12 23:48:09 -05:00
#### Notes
- Bibata build configuration and cursor hotspot settings are bundled in the `build.toml` file.
- Check out the scripts section in [package.json](./package.json) to see how we build the cursor theme,
excluding the render scripts. They are useful for converting `.svg` files to `.png` files.
- yarn is optional, For building XCursors and Windows cursors from `.png` files or resizing them
you don't need that. If you want to develop/modify Bibata's colors, and bitmaps, or generate a png
file from a svg, Then you can use yarn because bitmapper is written in TypeScript.
- Since Bibata Modern and Bibata Original are designed similarly, they share the same hotspot settings so a
single configuration file `build.toml` is responsible for building all variants. Due to this, you will have
to change the following options in `ctgen` to build the appropriate variant:
- **-d**: bitmaps directory
- **-n**: The name you want to give to the generated theme.
- **-c**: Theme comment.
- See `ctgen --help` for all available options.
### Build prerequisites
2019-11-12 23:48:09 -05:00
- Python version 3.7 or higher
2022-10-06 02:32:45 -04:00
- [clickgen](https://github.com/ful1e5/clickgen)>=2.1.2 (`pip install clickgen`)
- [yarn](https://github.com/yarnpkg/yarn)
2019-11-12 23:48:09 -05:00
### Quick start
2019-11-12 23:48:09 -05:00
1. Install [build prerequisites](#build-prerequisites) on your system
2. `git clone https://github.com/ful1e5/Bibata_Cursor`
3. `cd Bibata_Cursor && yarn build`
4. See [Installing Bibata Cursor](#installing-bibata-cursor).
2019-11-13 23:13:32 -05:00
### Building
2019-11-12 23:48:09 -05:00
> **Note**
> Bitmaps are already generated in the `bitmaps` directory and **managed by the maintainer**
> (do not edit them directly).
First make sure you installed the [build prerequisites](#build-prerequisites).
Now that you have the dependencies, you can try build individual themes from bitmaps and
customize sizes, target platform, and etc. with the `ctgen` CLI (packed with `clickgen`).
2018-09-03 07:38:53 -04:00
#### `yarn build` aberration
2020-08-13 00:43:32 -04:00
Here are the default commands we used to build the Bibata's variants and packed them into `yarn build`:
2020-08-13 00:43:32 -04:00
```bash
ctgen build.toml -d 'bitmaps/Bibata-Modern-Amber' -n 'Bibata-Modern-Amber' -c 'Yellowish and rounded edge bibata cursors.'
ctgen build.toml -d 'bitmaps/Bibata-Modern-Classic' -n 'Bibata-Modern-Classic' -c 'Black and rounded edge Bibata cursors.'
ctgen build.toml -d 'bitmaps/Bibata-Modern-Ice' -n 'Bibata-Modern-Ice' -c 'White and rounded edge Bibata cursors.'
2020-08-13 00:43:32 -04:00
ctgen build.toml -d 'bitmaps/Bibata-Original-Amber' -n 'Bibata-Original-Amber' -c 'Yellowish and sharp edge Bibata cursors.'
ctgen build.toml -d 'bitmaps/Bibata-Original-Classic' -n 'Bibata-Original-Classic' -c 'Black and sharp edge Bibata cursors.'
ctgen build.toml -d 'bitmaps/Bibata-Original-Ice' -n 'Bibata-Original-Ice' -c 'White and sharp edge Bibata cursors.'
```
2020-09-05 03:45:34 -04:00
Afterwards, the themes can be found in the `themes` directory.
#### Customize Sizes
> **Note**
> You can change the cursor size up to 200 because pngs are rendered with 200x200.
> If the cursor is resized by more than rendered png size, the final cursor will be blurred.
2020-09-05 03:45:34 -04:00
##### Customize Windows Cursor size
2020-09-05 03:45:34 -04:00
To build Windows cursor with size `16`:
2020-09-05 03:45:34 -04:00
> **Warning**
> Windows cursor supports only one size, if multiple sizes are given with `-s` the first size will
> be considered in build.
2020-09-05 08:05:43 -04:00
2020-09-05 03:45:34 -04:00
```bash
ctgen build.toml -s 16 -p windows -d 'bitmaps/Bibata-Modern-Ice' -n 'Bibata-Modern-Ice' -c 'White and rounded egde bibata cusors with size 16'
2020-09-05 08:05:43 -04:00
```
You can also customize output directory with `-o` option:
2020-09-05 08:05:43 -04:00
```bash
ctgen build.toml -s 16 -p windows -d 'bitmaps/Bibata-Modern-Ice' -o 'out' -n 'Bibata-Modern-Ice' -c 'White and rounded egde Bibata cursors with size 16'
2020-09-05 08:05:43 -04:00
```
##### Customize XCursor size
2020-09-05 08:05:43 -04:00
To build XCursor with size `16`:
2020-09-05 08:05:43 -04:00
```bash
ctgen build.toml -s 16 -p x11 -d 'bitmaps/Bibata-Modern-Ice' -n 'Bibata-Modern-Ice' -c 'White and rounded egde Bibata cursors with size 16'
2020-09-05 03:45:34 -04:00
```
You can also assign multiple sizes to `ctgen` for XCursors build:
2020-09-05 03:50:03 -04:00
```bash
ctgen build.toml -s 16 24 32 -p x11 -d 'bitmaps/Bibata-Modern-Ice' -n 'Bibata-Modern-Ice' -c 'Custom white and rounded egde Bibata cursors'
2020-09-05 03:50:03 -04:00
```
#### Customize Colors
To customize bibata's color you have to compile the bibata-bitmapper with `yarn compile` command.
After compiling bibata-bitmapper form source code you can customize the colors via `cli.js` node script,
Which you will find in the `dist` directory.
##### `cli.js` Help
```
Usage: bibata-bitmapper [OPTIONS]...
Options:
-V, --version output the version number
-d, --dir <path> Specifies the directory for placement of SVG files.
-o, --out <path> Specifies the output directory. (default './bitmaps')
-n, --themeName <string> Specifies the name of output directory.
-bc, --baseColor <hex> Specifies the Hexadecimal color for inner part of cursor.
-oc, --outlineColor <hex> Specifies the Hexadecimal color for cursor's ouline.
-wc, --watchBackgroundColor <hex> Specifies the Hexadecimal color for animation background.
-h, --help display help for command
```
##### `yarn render` aberration
Here are the default commands we used for generating the Bibata's bitmaps and packed them into `yarn render`:
```bash
node dist/cli.js -d 'svg/modern' -n 'Bibata-Modern-Amber' -bc '#FF8300' -oc '#FFFFFF' -wc '#001524'
node dist/cli.js -d 'svg/modern' -n 'Bibata-Modern-Classic' -bc '#000000' -oc '#FFFFFF'
node dist/cli.js -d 'svg/modern' -n 'Bibata-Modern-Ice' -bc '#FFFFFF' -oc '#000000'
node dist/cli.js -d 'svg/original' -n 'Bibata-Original-Amber' -bc '#FF8300' -oc '#FFFFFF' -wc '#001524'
node dist/cli.js -d 'svg/original' -n 'Bibata-Original-Classic' -bc '#000000' -oc '#FFFFFF'
node dist/cli.js -d 'svg/original' -n 'Bibata-Original-Ice' -bc '#FFFFFF' -oc '#000000'
```
#### Examples
Lets generate modern Bibata with green base color and black outline:
```bash
node dist/cli.js -d 'svg/modern' -n 'Bibata-Hacker' -bc '#00FE00' -oc '#000000' -wc '#001524'
```
After rendering custom color you have to build cursor through `ctgen`:
```bash
ctgen build.toml -d 'bitmaps/Bibata-Hacker' -n 'Bibata-Hacker' -c 'Green and black Bibata cursors.'
```
Afterwards, Generated theme can be found in the `themes` directory.
###### Bibata Gruvbox
```bash
node dist/cli.js -d 'svg/original' -n 'Bibata-Gruvbox' -bc '#282828' -oc '#EBDBB2' -wc '#000000'
ctgen build.toml -d 'bitmaps/Bibata-Gruvbox' -n 'Bibata-Gruvbox' -c 'Groovy Bibata cursors.'
```
###### Bibata Solarized Dark
```bash
node dist/cli.js -d 'svg/original' -n 'Bibata-Solarized-Dark' -bc '#002b36' -oc '#839496' -wc '#000000'
ctgen build.toml -d 'bitmaps/Bibata-Solarized-Dark' -n 'Bibata-Solarized-Dark' -c 'Solarized Dark Bibata cursors.'
```
###### Bibata Solarized Light
```bash
node dist/cli.js -d 'svg/original' -n 'Bibata-Solarized-Light' -bc '#839496' -oc '#002b36'
ctgen build.toml -d 'bitmaps/Bibata-Solarized-Light' -n 'Bibata-Solarized-Light' -c 'Solarized Light Bibata cursors.'
```
###### Bibata Dracula
```bash
node dist/cli.js -d 'svg/original' -n 'Bibata-Dracula' -bc '#282a36' -oc '#f8f8f2'
ctgen build.toml -d 'bitmaps/Bibata-Dracula' -n 'Bibata-Dracula' -c 'Dracula Bibata cursors.'
```
## Consider Sponsoring my work
2022-10-03 08:39:46 -04:00
Until 2021 my cursors projects were well funded by [pling.com](https://www.pling.com) but since the
[pling-factor](https://www.pling.com/terms/payout) on the website has decreased and monthly payments
are <500$, It is now dependent on community funding and sponsorships. If you want to help me to maintain
Bibata and my other open source projects actively, consider sponsoring my work on [GitHub Sponsor](https://github.com/sponsors/ful1e5)
or DM me on [Twitter](https://twitter.com/ful1e5) if your company would like to support this project,
I will gladly look into it and post your avatar in the README.
I appreciate all the wonderful people who patronize and sponsoring my work.
<!-- Add your name or avatar here with the Pull Request in case I missed it. -->
_Be you first._
## You may also like...
2019-11-12 23:48:09 -05:00
2021-03-04 07:02:53 -05:00
- [**Bibata Adapta**](https://gitlab.com/cscs/Bibata_AdaptaBreath_Cursors) - Bibata Based Cursor Made for AdaptaBreath and Manjaro.
- [**Bibata Extra**](https://github.com/ful1e5/Bibata_Extra_Cursor) - More Bibata!
- [**Bibata Rainbow**](https://github.com/ful1e5/Bibata_Cursor_Rainbow) - 'Semi-Animated' Bibata cursors with rainbow colors
- [**Bibata Zebra**](https://github.com/ful1e5/Bibata-Zebra-Cursor) - Bibata cursor with a semi-animated strip
2021-11-02 07:01:44 -04:00
- [**Bibata Bee**](https://github.com/ful1e5/Bibata-Bee-Cursor) - 'Semi-Animated' Bibata cursors with bee stripes
2021-03-04 07:02:53 -05:00
- [**Bibata Translucent**](https://github.com/Silicasandwhich/Bibata_Cursor_Translucent) - Bibata translucent is a translucent flavor of the Bibata.
2018-09-03 07:38:53 -04:00
## Credit
2018-10-21 10:13:55 -04:00
[Wedge Loading Animation](https://loading.io/spinner/wedges/-pie-wedge-pizza-circle-round-rotate) ·
[Adwaita](https://github.com/GNOME/adwaita-icon-theme) ·
[Dmz](https://github.com/GalliumOS/dmz-cursor-theme) ·
[Yaru](https://github.com/ubuntu/yaru)