othyn / github-folder-icon-macOS

GitHub folder icon for use in macOS. Made so that it fits nicely alongside all the others inside your home directory. Mac OS X 10.5 (Leopard) through to macOS 13 (Ventura).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸπŸ“ macOS GitHub Folder Icon

Made so that it fits nicely alongside all the others inside your home directory... or wherever.

What do we have here...

  • ... πŸ“ˆ A version available all the way from Mac OS X 10.5 (Leopard) through to macOS 13 (Ventura)
  • ... πŸŒ— Light and Dark mode variants (where applicable, macOS 11 or later)
  • ... πŸ“ Both icns and iconset versions of all icons
  • ... πŸ–ΌοΈ All icon sizes from 16x16 through to 512x512@2x

the oldest Mac OS X icon   an arrow pointing right   the newest macOS icon

πŸ‘‡ Downloading & using the icon(s)

🐌 The manual way

The easiest way will be for you to download the icon you want from the the icons directory. Simply find which macOS version you would like the icon for, and if applicable the light or dark mode variant, and download the icns file within that directory using GitHub's Download button once within a file's context:

GitHub's download button

To apply the icon, right click on the directory that you wish to update the icon of and click 'Get Info', a new dialogue window should appear. You now need to click-and-drag the downloaded icns file into the small icon in the top left of the window next to the directory name:

macOS 'Get Info' dialogue window

Ta-da! πŸŽ‰ You're all set, the icon should now be looking glorious.

πŸš€ The fun way

There's a brilliant tool called fileicon in which can programmatically set the icons of files and folders in macOS.

To install it via brew:

brew install fileicon

Then, if we assume that the directory we want to set the icon for is ~/git and the downloaded icon resides in ~/Downloads/icon.icns:

# Assign the custom downloaded GitHub icon to ~/git
fileicon set ~/git ~/Downloads/icon.icns

Ta-da! πŸŽ‰ You're all set, the icon should now be looking glorious.

To restore the icon to its original state:

# Remove the custom downloaded GitHub icon from ~/git
fileicon rm ~/git

More examples can be found under the Examples heading in the fileicon README.

🧰 Installing dependencies

I used to manually find and extract the folder icon upon every release, but someone recently introduced me to... folderify! Which has made maintaining this repo a breeze.

Make sure brew is installed (don't want to automate installing this on your system) and then go ahead and run the make command to get things setup:

make install

πŸ—οΈ Generating icons

This is as simple as ensuring that you've already run make install and then running:

make icons

🎨️ Manually generating just the icons

To generate just the icons on their own, run:

make generate

Although this step is run prior to generating new icons anyway.

πŸ–ΌοΈ Manually generating a new preview image

To generate a new preview image, used in the README of this project, run:

make preview

Although this step is run prior to generating new icons anyway.

πŸ—‘οΈ Manually cleaning Icons

If you want to quickly wipe the slate clean, run:

make clean

Although this step is run prior to generating new icons anyway.

❓ F.A.Q's

  • Can I get the icon to automatically change with light/dark mode?

    • Unfortunately, no. As mentioned in the Folderify README, under Usage:

      There is currently no simple way to set an icon that will automatically switch between light and dark when you switch the entire OS. You can only assign one icon to a folder.

    • This appears to be a limitation within macOS itself and Apple currently not allowing for the distinction between two icons

πŸŽ‚ Sources

About

GitHub folder icon for use in macOS. Made so that it fits nicely alongside all the others inside your home directory. Mac OS X 10.5 (Leopard) through to macOS 13 (Ventura).


Languages

Language:Makefile 100.0%