Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save SquiddyWins/960bd03d16a0dfbbdd39c289202ebf14 to your computer and use it in GitHub Desktop.

Select an option

Save SquiddyWins/960bd03d16a0dfbbdd39c289202ebf14 to your computer and use it in GitHub Desktop.
Linux bash Script für das cursor-theme "Ferdear_CustomCursor_himechii"
#!/bin/bash
# PUT THIS FILE IN THE SAME FOLDER AS THE ZIP FILE YOU DOWNLOAD FROM HERE: https://www.patreon.com/posts/himechii-goal-138495273
# REQUIREMENTS INSTALL BEFORE USING THIS SCRIPT: win2xcur https://github.com/quantum5/win2xcur/
# TODO: find usage for Altenate and handwriting, maybe person; set different sizes for 24, 36, 48
# Prepare files
unzip Ferdear_CustomCursor_himechii.zip
mkdir -p Ferdear_CustomCursor_himechii_for_linux/cursors/
touch Ferdear_CustomCursor_himechii_for_linux/index.theme
# Convert windows themes to xcursor
win2xcur Ferdear_CustomCursor_himechii/cursors/*.ani -o Ferdear_CustomCursor_himechii_for_linux/cursors/
# Symlink the cursor animations to the right action-name in linux
cd Ferdear_CustomCursor_himechii_for_linux/cursors/
#ln -sf Altenate ??? # idk what this is for
ln -sf busy wait # finished
ln -sf busy watch # finished
ln -sf diagonia_1 bottom_right_corner
ln -sf diagonia_1 top_left_corner
ln -sf diagonia_1 nw-resize
ln -sf diagonia_1 se-resize
ln -sf diagonia_2 bottom_left_corner
ln -sf diagonia_2 top-right-corner
ln -sf diagonia_2 ne-resize
ln -sf diagonia_2 sw-resize
ln -sf horizontal size_hor
ln -sf horizontal sb_h_double_arrow
ln -sf horizontal ew-resize
ln -sf horizontal e-resize
ln -sf horizontal w-resize
ln -sf horizontal col-resize
ln -sf vertical size_ver
ln -sf vertical sb_v_double_arrow
ln -sf vertical ns-resize
ln -sf vertical n-resize
ln -sf vertical s-resize
ln -sf vertical row-resize
#ln -sf handwriting pencil # Idk for what this is???
#ln -sf handwriting pen
ln -sf help question_arrow
#ln -sf help help # is already set correctly
ln -sf link pointer # finished
ln -sf link hand1 # finished
ln -sf location center_ptr # finished
ln -sf location cross # finished
ln -sf move grabbing # finished
ln -sf move fleur # finished
ln -sf normal default # finished
ln -sf normal left_ptr # finished
ln -sf person target # finished
ln -sf precision crosshair # finished
ln -sf text xterm # finished
#ln -sf text text # is already set correctly
ln -sf unavailable no-drop # finished
ln -sf unavailable forbidden # finished
ln -sf unavailable not-allowed # finished
ln -sf working progress # finished
# Write index.theme
cd ..
cat > "index.theme" << 'EOF'
[Icon Theme]
Name=Ferdear_CustomCursor_himechii_for_linux
Comment=Himechii Cursor theme by Ferdear
Comment[de]=Himechii Cursor theme von Ferdear
Inherits=Adwaita
EOF
# Create archive
cd ..
tar czf Ferdear_CustomCursor_himechii_for_linux.tar.gz Ferdear_CustomCursor_himechii_for_linux/
# cleanup
rm -r Ferdear_CustomCursor_himechii/ Ferdear_CustomCursor_himechii_for_linux/
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment