Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c241d4d
Built cursors added
Souravgoswami Aug 26, 2020
28f60fc
Cleanup
Souravgoswami Aug 26, 2020
fadfda6
Integrate convert.rb in Makefile
Souravgoswami Aug 27, 2020
5372257
Pulled master
Souravgoswami Sep 29, 2020
7d03da9
Added borders
Souravgoswami Sep 29, 2020
23e9902
Removed old cursors
Souravgoswami Sep 29, 2020
38a1ebb
Deleted old src files
Souravgoswami Sep 29, 2020
c3d83f2
Added bordered cursors
Souravgoswami Sep 29, 2020
567ce9b
Enchanced documentation. Make runs convert.rb by default
Souravgoswami Sep 29, 2020
4ebd054
Added Built Cursors
Souravgoswami Sep 29, 2020
4ea6a66
Bug fixes for convert.rb while used with pipes. Magic comment typo
Souravgoswami Sep 29, 2020
264359a
Updated index.theme
Souravgoswami Sep 29, 2020
af8b8b0
Merge branch 'oreo-bordered' of https://github.com/Souravgoswami/oreo…
Souravgoswami Sep 29, 2020
c6a7e1e
New index.theme.rb file to mention author name in ease
Souravgoswami Sep 29, 2020
4e30818
Changed to readme
Souravgoswami Sep 29, 2020
072937a
Update to convert.rb + Added green bordered cursor + Colour fix for w…
Souravgoswami Sep 29, 2020
0d7a4f1
Cleanup and Pushed Green Border Cursor source file
Souravgoswami Sep 29, 2020
5f5f072
Added prebuilt cursors
Souravgoswami Sep 29, 2020
a35ba37
Thin borders for black & white cursors - elegant look
Souravgoswami Sep 29, 2020
d510e46
Ability to generate sizes from cursors.conf
Souravgoswami Oct 4, 2020
d8b1b2f
Update README.md
Souravgoswami Oct 4, 2020
0153f5f
Clean up
Souravgoswami Oct 4, 2020
a3b405b
🔥 Added 24, 32, 40, 48, 56, 64 sized cursors
Souravgoswami Oct 4, 2020
2f33216
🖼️ Added Preview Images
Souravgoswami Oct 4, 2020
b428eb1
Added inline image (16px)
Souravgoswami Oct 4, 2020
60b613e
🚀 Added inline image (32px)
Souravgoswami Oct 4, 2020
212afab
New Readme
Souravgoswami Oct 4, 2020
fbd47a4
Update README.md
Souravgoswami Oct 4, 2020
b696384
🛠 Fixed top_side
Souravgoswami Oct 4, 2020
31a081f
🛠 Build fix for top_side
Souravgoswami Oct 4, 2020
e27d996
🔥 Add more info to README
Souravgoswami Oct 4, 2020
90c9495
💎 Added encoding to ruby scripts
Souravgoswami Oct 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ CURSOR_THEMES ?= $(patsubst %/index.theme,%,$(wildcard ./dist/*/index.theme))
all: build

build:
ruby generator/configs.rb
ruby generator/convert.rb
bash build.sh

clean:
Expand Down
53 changes: 34 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,65 @@
# Oreo Cursors
# Oreo Cursors ![Screenshot Animated](https://raw.githubusercontent.com/Souravgoswami/oreo-cursors/oreo-multisize/images/oreo-animated-32.gif)

### Install build version
![Screenshot 1](https://raw.githubusercontent.com/Souravgoswami/oreo-cursors/oreo-multisize/images/image1.webp)

https://www.pling.com/p/1360254/

### Install build version 📦

The cursors can also be found under dist/ directory. Copy them to ~/.icons/ (only available to $USER) or /usr/share/icons/ (available to all users).

### Manual Install
Alternatively run `make install` as root to copy them to /usr/share/icons.

### Manual Install 📦

1. Install dependencies:
1. Install dependencies

- git
- make
- ruby >= 2.4
- inkscape
- xcursorgen

2. Run the following commands as normal user:
2. Run the following commands as a regular non-root user

```
git clone https://github.com/varlesh/oreo-cursors.git
cd oreo-cursors
make build
sudo make install

# installs the cursor to /usr/share/icons/
# To uninstall, remove the /usr/share/icons/oreo_* directories
sudo make install
```
Note that on a i3 desktop processor, this might take 15 minutes to build all the 20 default cursors.

⚠️ Note that on an i3 desktop processor, this might take 45 minutes to build 20 cursors with all the sizes given.

⚠️ You can avoid building and just install what's already built by us!

3. Choose a theme in the Settings or in the Tweaks tool.

### Generate user defined colours:
### Generate user defined colours and sizes 🎨

1. Install dependencies:
- ruby (Minimum version 2.4 is required)
1. Edit the file cursors.conf with colour name and colour value in hex:

2. cd into the generator/ directory.
```
black_mod = color: #424242, label: #FFF, shadow: #222, shadow-opacity: 0.4, stroke: #fff, stroke-opacity: 1, stroke-width: 1

3. Create a file called colours.conf with colourname and colour value in hex, separated with =. For example:
# Lines with # are skipped.

Also read the comments in cursors.conf for more details.
```
# Name = Colour LabelColour ShadowColour ShadowOpacity
black_mod = #424242 #FFF #222 0.4

# This is a comment
To add custom size, use:

```
sizes = 24, 32, 40, 48, 64
```
It's most likely to have some contents in the colours.conf, remove and insert lines according to your likings.
Do note that if you don't specify the LabelColour, ShadowColour, ShadowOpacity, they will be default to #FFF, #000, 0.3 respectively.

4. Run `ruby convert.rb`. This will convert your colours and map it to the cursors.
(`make build` automatically runs all the necessary files)

⚠️ More sizes means more time to build. It can take upto an hour to build 5 - 6 sizes.

⚠️ More sizes also means more disk space .

5. Follow [Manual Install](https://github.com/Souravgoswami/oreo-cursors#manual-install) for build and installation.
2. Follow [Manual Install](https://github.com/Souravgoswami/oreo-cursors#manual-install) for build and installation.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ convert_to_png() {
local src_dir="$1"
local out_dir="${2:-.}"
local file size bitmap_file png_mtime svg_mtime
local sizes=`command ruby -W0 generator/checksizes.rb`

[ -d "$src_dir" ] || return 1
[ -d "$out_dir" ] || mkdir -p "$out_dir"


# shellcheck disable=SC2016
for file in "$src_dir"/*.svg; do
[ -f "$file" ] || continue
for size in 32 64; do
for size in $sizes; do
bitmap_file="${out_dir%/}/$(basename "$file" .svg)_${size}.png"

svg_mtime="$(stat -c '%Y' "$file")"
Expand Down
44 changes: 44 additions & 0 deletions cursors.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Oreo Cursor Generator - Generate your own cursors

# Long Syntax with Attributes
# purple = colour: #ff5, label: #fa0, shadow: #0a0, shadow_opacity: 1, stroke: #08f, stroke_opacity: 1.2, stroke_width: 1.5
# purple = color: #ff5, label: #fa0, shadow: #0a0, shadow_opacity: 1, stroke: #08f, stroke_opacity: 1.2, stroke_width: 1.5

# All the options can be shuffled!
# "_" can be replaced with "-". For example, "stroke_opacity" can be written as "stroke-opacity".
# "colour" can be replaced with "color", For example, "colour: #55f" can be written as "color: #55f".
# ":" can be replaced with "=". For example, "stroke-width: 1" can be written as "stroke-width = 1".

# If you want to generate a single colour with the default value for others
# purple = #fff

# Sizes to build (defaults to 32, 64 if not defined)
sizes = 24, 32, 40, 48, 56, 64

# Default cursors by Varlesh
black = #424242
blue = #4E81ED
grey = #546E7A
pink = #EE5387
purple = #7E57C2
red = #F44336
teal = #009789
white = colour: #C6C6C6, label: #424242

# Spark cursors: More colours by Sourav
spark_red = #f55
spark_blue = #55f
spark_pink = #ff50a6
spark_orange = #FFA726
spark_green = #4E9A06
spark_purple = #912BFF
spark_lime = colour: #E7EC00, label: #2e7d32
spark_light_pink = #ff91c7
spark_violet = #6435C9

# Spark Cursors with Borders:
spark_black_bordered = color: #000, stroke: #fff, stroke-width: 1, stroke-opacity: 1
spark_white_bordered = color: #fff, label: #222, stroke: #222, stroke-opacity: 1, stroke-width: 1
spark_pink_bordered = color: #ff50a6, stroke: #fff, stroke_width: 1.5, stroke_opacity: 1
spark_orange_bordered = color: #FFA726, stroke: #fff, stroke_width: 1.5, stroke_opacity: 1
spark_green_bordered = color: #4E9A06, stroke: #fff, stroke_width: 1.5, stroke_opacity: 1
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/X_cursor
Binary file added dist/oreo_black_cursors/cursors/alias
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/all-scroll
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/arrow
Binary file not shown.
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/bottom_side
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/cell
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/center_ptr
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/circle
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/closedhand
Binary file added dist/oreo_black_cursors/cursors/col-resize
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/color-picker
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/context-menu
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/copy
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/cross
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/crossed_circle
Binary file added dist/oreo_black_cursors/cursors/crosshair
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/default
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/dnd-copy
Binary file added dist/oreo_black_cursors/cursors/dnd-move
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/dnd-no-drop
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/dnd-none
Binary file added dist/oreo_black_cursors/cursors/down-arrow
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/draft
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/e-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ew-resize
Binary file added dist/oreo_black_cursors/cursors/fleur
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/forbidden
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/grab
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/grabbing
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/h_double_arrow
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/half-busy
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/hand
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/hand1
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/hand2
Binary file added dist/oreo_black_cursors/cursors/help
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ibeam
Binary file added dist/oreo_black_cursors/cursors/left-arrow
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/left_ptr
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/left_ptr_help
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/left_ptr_watch
Binary file added dist/oreo_black_cursors/cursors/left_side
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/link
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ll_angle
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/lr_angle
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/move
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/n-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ne-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/nesw-resize
Binary file added dist/oreo_black_cursors/cursors/no-drop
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/not-allowed
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ns-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/nw-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/nwse-resize
Binary file added dist/oreo_black_cursors/cursors/openhand
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/pencil
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/pirate
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/plus
Binary file added dist/oreo_black_cursors/cursors/pointer
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/pointing_hand
Binary file added dist/oreo_black_cursors/cursors/progress
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/question_arrow
Binary file added dist/oreo_black_cursors/cursors/right-arrow
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/right_ptr
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/right_side
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/row-resize
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/s-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/sb_h_double_arrow
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/sb_v_double_arrow
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/se-resize
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/size-bdiag
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/size-fdiag
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/size-hor
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/size-ver
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/size_all
Binary file added dist/oreo_black_cursors/cursors/size_bdiag
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/size_fdiag
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/size_hor
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/size_ver
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/split_h
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/split_v
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/sw-resize
Binary file added dist/oreo_black_cursors/cursors/text
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/top_left_arrow
Binary file not shown.
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/top_side
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ul_angle
Binary file added dist/oreo_black_cursors/cursors/up-arrow
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/ur_angle
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/v_double_arrow
Binary file added dist/oreo_black_cursors/cursors/vertical-text
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/w-resize
Binary file added dist/oreo_black_cursors/cursors/wait
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/watch
Binary file added dist/oreo_black_cursors/cursors/wayland-cursor
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/whats_this
Binary file added dist/oreo_black_cursors/cursors/x-cursor
Binary file not shown.
1 change: 1 addition & 0 deletions dist/oreo_black_cursors/cursors/xterm
Binary file added dist/oreo_black_cursors/cursors/zoom-in
Binary file not shown.
Binary file added dist/oreo_black_cursors/cursors/zoom-out
Binary file not shown.
3 changes: 3 additions & 0 deletions dist/oreo_black_cursors/index.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Icon Theme]
Name=Oreo Black Cursors
Comment=design by varlesh
Loading