Results 1 to 7 of 7
  1. #1
    Question Customise menu bar icons.
    Hi guys.
    I'm looking to spice up Mojave a bit by adding colour to menu bar icons.
    Namely Wi-Fi and Battery icons (since I hide the rest using Bartender 3).
    I've navigated to System > Library > CoreServices > Menu Extras > Battery.menu > Contents > Resources , and found the following files:

    UPSCharged.pdf
    UPSCharging.pdf
    UPSEmpty.pdf
    UPSLevelBlack.pdf
    UPSLevelRed.pdf

    The problem is these files are Read-only. So I can open them in Illustrator and edit the colouring, but can't save and overwrite the files.
    Does anyone know how to alter permissions and make the files Read & Write? Attempting to alter permissions on the 'Get Info' window results in this error:
    "The operation canít be completed because you donít have the necessary permission."

    I'm assuming the fix is a Terminal command or something.
    Thanks in advance,
    Jack

  2. #2
    Knowing the risks and owning whatever you break.

    From the terminal, enter the following commands:
    Code:
    cd /System/Library/CoreServices/Menu Extras/Battery.menu/Contents/Resources
    sudo chown 666 UPSCharged.pdf UPSCharging.pdf UPSEmpty.pdf UPSLevelBlack.pdf UPSLevelRed.pdf
    Make your changes and then in the same Terminal window
    Code:
    sudo chown 644 UPSCharged.pdf UPSCharging.pdf UPSEmpty.pdf UPSLevelBlack.pdf UPSLevelRed.pdf
    The sudo command will ask you for your login password (presumably the account you login with has Admin privileges), enter it and the permissions will be changed. You can confirm both changes through Finder Get Info.
    --
    Regards
    ...Ashwin


  3. #3
    What I've done is disabled System Integrity Protection and changed permissions on the respective files and their parent folders.
    The colours have been changed but these changes do not appear on the menu bar icon. Will your terminal codes fix this?

  4. #4
    Customise menu bar icons.
    Slydude's Avatar
    Member Since
    Nov 16, 2009
    Location
    North Louisiana, USA
    Posts
    13,410
    Your Mac's Specs
    2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.1 beta
    I can't answer your question about Terminal but did you reboot the Mac after making the changes? I don't know if that applies here but it often does for these types of changes.

    BTW I assume that you made a good backup before changing the files.

  5. #5
    The terminal commands will not make any magic happen. You are assuming that these PDF files are indeed the ones displayed on the menu bar. If that were true, your changes would appear. I find it hard to believe that PDF files are used for this purpose since there are significantly lighter weight (and scalable) image formats for this purpose.
    --
    Regards
    ...Ashwin


  6. #6
    Well there's no other image files of any kind in the folder. Not sure where else to look

  7. #7
    The resources are most likely not in a format that you can modify as they are likely embedded into something else. Possibly a sprite sheet or SVG with hard coded values directly in code (that's how I would do it).
    --
    Regards
    ...Ashwin


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how can i restore icons from the menu bar?
    By gaia in forum macOS - Operating System
    Replies: 5
    Last Post: 12-07-2017, 09:11 PM
  2. Icons on menu bar
    By GlastoGrandma in forum macOS - Operating System
    Replies: 0
    Last Post: 10-30-2013, 09:50 AM
  3. menu icons (menulets) on menu bar not appearing?!?!??!?
    By som jelly 1 in forum Apple Notebooks
    Replies: 2
    Last Post: 06-02-2011, 11:15 PM
  4. Icons from menu bar disappeared
    By istratos in forum macOS - Operating System
    Replies: 2
    Last Post: 11-18-2009, 12:29 AM
  5. customizing menu bar icons
    By psychodork in forum macOS - Operating System
    Replies: 0
    Last Post: 03-03-2009, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •