Go Back   MacRumors Forums > Mac Community > Picture Gallery > UI Customization

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old Dec 27, 2012, 12:37 AM   #76
xxPatangTangxx
macrumors newbie
 
Join Date: Dec 2012
So I'm not really good at this whole terminal and coding stuff but I tried to use my knowledge of what you guys posted here BUT i can't figure it out... I'm on 10.8.2. Can someone give me some steps on how to do it...I hate looking at this ugly grey dock...

thanks
xxPatangTangxx is offline   0
Old Dec 27, 2012, 01:28 PM   #77
unsanity77
Thread Starter
macrumors member
 
Join Date: Nov 2012
Copy dockmod to your desktop.
Open Terminal.app.
In Terminal, type the following (or copy and paste from here):
Code:
sudo ~/Desktop/dockmod -c black
unsanity77 is offline   2
Old Dec 28, 2012, 01:34 PM   #78
Life,Death,Tech
macrumors newbie
 
Join Date: Jul 2010
Thanks for making this program! It looks fantastic and was way easier to use than I thought it would be. Still debating whether I prefer reflections on or off.
Attached Thumbnails
Click image for larger version

Name:	Dock.png
Views:	253
Size:	196.4 KB
ID:	386259  
Life,Death,Tech is offline   0
Old Dec 29, 2012, 02:34 AM   #79
TheAngryPenguin
macrumors member
 
Join Date: Oct 2012
Quote:
Originally Posted by Life,Death,Tech View Post
Thanks for making this program! It looks fantastic and was way easier to use than I thought it would be. Still debating whether I prefer reflections on or off.
I'm actually digging the reflections with the black Dock:



(Indicators are sourced from here, and as I mentioned over here, they seem to overlap my MBP's bezel, which is really nice...)
TheAngryPenguin is offline   2
Old Dec 30, 2012, 08:20 PM   #80
Hermoon
macrumors newbie
 
Join Date: May 2008
thx!
Hermoon is offline   0
Old Jan 2, 2013, 04:23 AM   #81
76ShovelHead
macrumors 6502
 
Join Date: May 2010
Location: Connecticut
Quote:
Originally Posted by unsanity77 View Post
Here's something I came up with to help those who absolutely have to have a black dock. Since Apple moved from image files to CoreGraphics rendering code, the only way to customize the color of the dock is to modify the code.

It can be quite complex as it involves some hacking of the OS, but as I wanted a black dock bad enough to do this, I figured there may be others.




Automatic Method UPDATED:

Coded a program that should handle it for you without the need for any extra tools or files. It performs a static decryption on the file and removes an integral part of the code signature to bypass the signing process rather than fake codesigning the binary as I did in previous versions.

Consider this BETA software, and post if you have problems, and I will try to improve it.
Code:
usage:
    dockmod -c <color> -r

    -c, --color            color to make the dock ('default' or 'black')
    -r, --noreflections    disable icon reflections
Keep in mind, again, this will only work for 10.8.2 so far, and will have to be updated for future versions.

use it like this:
Code:
sudo dockmod -c black -r
The color options are "black" and "default" for the -c option, and the -r option will disable icon reflections.

This is what it looks like:
Love it! Thanks
__________________
Haswell i5 3 GHz 8 GB Ram 128 GB SSD Mavericks
76ShovelHead is offline   0
Old Jan 5, 2013, 08:15 AM   #82
1920s
macrumors newbie
 
Join Date: Jan 2013
Question

Dear unsanity77,

I'm sorry to bother you with this, but I was wondering is there any way to make the dock display a wooden pattern?

Like for example:


Any info would be greatly appreciated!

Have a lovely day!
Michelle
1920s is offline   0
Old Jan 5, 2013, 02:25 PM   #83
unsanity77
Thread Starter
macrumors member
 
Join Date: Nov 2012
Michelle, unfortunately there is not a way to have it display a pattern.

The reason for this is because what I have done is simply zero out the color value. In machine code, there is an instruction (command) that moves a floating-point value into a floating-point register in the cpu. This floating-point value is a value between zero and one with zero being black and one being white, and decimal values in between would be a shade of gray (light grays being closer to one and dark grays being closer to zero). My program simply overwrites the instruction that moves the gray value into this register with an instruction that zeroes out the register instead, therefore making it zero (black). Using this simple method there is no way to make it any other color other than gray (because the code for that does not exist already in the program) but I also cannot even make it any other color than black because the length of the instruction to do that would be longer than the instruction that is already there and would overwrite code that we needed still.

TL;DR
Because we are patching the binary we have a lot of limitations in what we can do, and so all we can do is make it black like I have done.
unsanity77 is offline   0
Old Jan 5, 2013, 02:30 PM   #84
tigres
macrumors 68040
 
tigres's Avatar
 
Join Date: Aug 2007
Location: Land of the Free-Waiting for Term Limits
Quote:
Originally Posted by 1920s View Post
Dear unsanity77,

I'm sorry to bother you with this, but I was wondering is there any way to make the dock display a wooden pattern?

Like for example:
Image

Any info would be greatly appreciated!

Have a lovely day!
Michelle
Scott got fired for similar wooden schemes.
__________________
Quicker than two shakes of a lambs tail
tigres is offline   1
Old Jan 5, 2013, 02:33 PM   #85
unsanity77
Thread Starter
macrumors member
 
Join Date: Nov 2012
That made me laugh out loud.
unsanity77 is offline   0
Old Jan 6, 2013, 12:12 AM   #86
commodore-64
macrumors newbie
 
Join Date: Jan 2013
Question Please Post the Original Patch Scripts

Hi unsanity:

I'd like to see your original patch scripts instead of the automatic patcher. The thing is that I'd like to learn how to patch the dock binary myself to get it to do something else (custom minimize behavior).

I don't know what is involved in patching an apple encrypted binary. I have tried reading the Dock binary with hopperapp and getting it to output the file unmodified using "Produce New Executable" menu option, but it ends up generating a broken Dock binary. If I replace the original Dock binary with the regenerated one, the Dock does not start.

I have also tried replacing the Dock binary with the output from the deprotect program, but the program generates a few warnings when it runs, so I am not comfortable using its output.

I am not sure if one has to re-encypt the binary after decrypting it. I don't understand why that would be necessary.
commodore-64 is offline   0
Old Jan 6, 2013, 02:58 AM   #87
unsanity77
Thread Starter
macrumors member
 
Join Date: Nov 2012
The original patch scripts still used a program that I wrote, except that program just attached to the Dock process and dumped the decrypted code from memory. You can do this manually by using vmmap to find the __text section and then using gdb to dump that address by using the dump binary memory command.

In dockmod, I just use the key that I reversed and calls to BF_cbc_encrypt.
unsanity77 is offline   0
Old Jan 7, 2013, 08:39 AM   #88
BoubakAy
macrumors newbie
 
Join Date: Jan 2013
Question How to use it?

Hi everybody, I'm new to this forum
Maybe it's stupid, but I don't know how use your dockmod progrm at all ^^'
When I open it in Terminal, there's nothing happen...
TIA

EDIT : Sorry, I just saw the post which explain this perfectly... It's ok, and congratulations for this little program

Last edited by BoubakAy; Jan 7, 2013 at 08:49 AM.
BoubakAy is offline   0
Old Jan 8, 2013, 11:57 PM   #89
commodore-64
macrumors newbie
 
Join Date: Jan 2013
How did you avoid code signing?

As it turns out, if I modify the Dock myself using my own patches, then the Dock refuses to start again. I get constant crashes with the following:

Exception Type: EXC_CRASH (Code Signature Invalid)

To avoid this, I have to create a self-signed certificate and code-sign the Dock binary myself. This procedure is mentioned here:

http://forums.macnn.com/79/developer...ications-once/

If I don't do this, then the Dock won't start.

I noticed that your dockmod program solves this problem by unsigning the Dock binary. How does one unsign a code-signed binary without having to resign it (like I had to do)?

Indigo:MacOS commodore_c64$ codesign -d Dock
Dock: code object is not signed at all
Indigo:MacOS commodore_c64$ codesign -d Dock.orig
Dock.orig: invalid signature (code or signature have been modified)
Indigo:MacOS commodore_c64$
commodore-64 is offline   0
Old Jan 11, 2013, 02:52 AM   #90
urbantea
macrumors member
 
Join Date: Jun 2012
OKay, I cant' get this to work. I downloaded your dock program. Ran it and it takes me to this screen

usage:
dockmod -c <color> -r

-c, --color color to make the dock ('default' or 'black')
-r, --noreflections disable icon reflections


and thats it

I exit the thing and thats it. Nothing happens to my dock, it's not black.

Am I supposed to do something at those screens? It wont let me type anything. I can't press "c" or anything. Now what???

----------

and when you said this

use it like this:
Code:

sudo dockmod -c black -r

sudo dockmod -c default -r

just drop the -r if you want the icon reflections.

The color options are "black" and "default" for the -c option, and the -r option will disable icon reflections.


Where do I do that? Where do I type/post this stuff?? In terminal? I did that, nothing happens...

----------

nvemrind, go tit. haha
urbantea is offline   0
Old Jan 11, 2013, 05:10 AM   #91
unsanity77
Thread Starter
macrumors member
 
Join Date: Nov 2012
Quote:
Originally Posted by commodore-64 View Post
I noticed that your dockmod program solves this problem by unsigning the Dock binary. How does one unsign a code-signed binary without having to resign it (like I had to do)?
Think about it. When a binary gets codesigned, what does that mean? How does the OS tell the difference between a signed and an unsigned binary? Well, there's metadata in the mach-o file, information that codesign adds to the binary. All I do is remove some of this information. Specifically, I remove the LC_CODE_SIGNATURE load command, and then fix up the mach header.
unsanity77 is offline   0
Old Jan 11, 2013, 10:38 PM   #92
turtlez
Banned
 
Join Date: Jun 2012
Thank you
Attached Thumbnails
Click image for larger version

Name:	dock.jpg
Views:	159
Size:	85.2 KB
ID:	389694  
turtlez is offline   0
Old Jan 13, 2013, 10:48 PM   #93
deepsilver
macrumors newbie
 
Join Date: Oct 2011
Location: new york
Hello guys I have one question. How do I make my dock look like this? My dock currently looks like this but it is not permanent. I dont know how it happened. When I restart my mb it disappears. Is there anyway to set this dock as default?
Thanks in advance!
Attached Thumbnails
Click image for larger version

Name:	66065217.jpg
Views:	176
Size:	66.1 KB
ID:	390120  

Last edited by deepsilver; Jan 14, 2013 at 12:02 AM.
deepsilver is offline   0
Old Jan 13, 2013, 11:35 PM   #94
cubbie5150
macrumors 6502a
 
Join Date: Mar 2007
Thanks for making this mod very easy to implement for idiots like me, very much appreciated!
__________________
15" rMBP | 16GB DDR3-1600MHz RAM | Quad Core i7-3720QM 2.6GHz | 256GB SSD
cubbie5150 is offline   0
Old Jan 21, 2013, 11:33 PM   #95
Omek
macrumors regular
 
Join Date: Jun 2003
Thank you!

Thank you so much for making this! I just upgraded and was blinded by that light-grey dock. And none of my customizing apps worked. Apple should really just implement a black dock feature. Not everyone wants that bright dock.
Omek is offline   0
Old Jan 27, 2013, 07:48 AM   #96
Killa Aaron
macrumors regular
 
Join Date: Nov 2011
Location: Chicago, IL
I can confirm that this works on 10.8.3 (12D61), beautiful work unsanity77.
__________________
Aaron Olive deviantART
iMac 27-inch, Mid 2011, 2.7 GHz i5, 8 GB RAM, 1 TB HD ; 16GB iPhone 6 Plus ; iPad mini Retina 32GB

Last edited by Killa Aaron; Jan 30, 2013 at 06:55 PM. Reason: added 10.8.3 (12D61)
Killa Aaron is offline   0
Old Jan 27, 2013, 10:14 AM   #97
M0esmac
macrumors 6502a
 
Join Date: Apr 2012
Location: UK
I sorry if I missed it, I downloaded program from first post and it doesn't work. Once I opened it with terminal it showed as [Process Complete], dock didn't change. Do I have to restart or something? I tried killall Dock, but didn't work.

Thanks
__________________
H.A.T.E.R.S: Having Anger Towards Everyone Reaching Success.
M0esmac is offline   0
Old Jan 27, 2013, 02:43 PM   #98
Dafnos3
macrumors newbie
 
Join Date: Aug 2012
Location: NYC
Here's a screen shot of my dock. I think it looks pretty good!!
Attached Thumbnails
Click image for larger version

Name:	My Dock.png
Views:	153
Size:	147.8 KB
ID:	392891  
Dafnos3 is offline   0
Old Jan 28, 2013, 09:21 AM   #99
Luis2004
macrumors 6502a
 
Join Date: Dec 2012
Wow, great work! Looks awesome on my screen.
Luis2004 is offline   0
Old Jan 28, 2013, 10:31 AM   #100
denisvj
macrumors regular
 
Join Date: Sep 2006
I`m getting " sudo: dockmod: command not found " and don't know why.

I have the file in the right folder and running sudo inside the folder

ML 10.8.2

Update: Added ./ and worked !! ( sudo ./dockmod -c black )

Thanks for the mod !
__________________
iMac ; iPhone 5S ; iPad Air 2 ; Macbook Pro

Last edited by denisvj; Jan 28, 2013 at 11:19 AM. Reason: SOLVED
denisvj is offline   0


Closed Thread
MacRumors Forums > Mac Community > Picture Gallery > UI Customization

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OS X: Sims complete collection, work with Mountain Lion? michaelshaw2121 Mac and PC Games 2 Feb 8, 2014 03:59 PM
Can I get Mountain Lion's Dock on Snow Leopard? (Candybar customization) LeandrodaFL OS X 1 Oct 11, 2013 06:57 PM
The Dock in Mountain Lion Airnova iMac 1 Dec 31, 2012 05:34 PM
Resolved: Can't Change Dock In Mountain Lion muzikman54 OS X 10.8 Mountain Lion 3 Aug 4, 2012 12:47 PM
How do I change the dock in Mountain Lion? Manic Harmonic OS X 10.8 Mountain Lion 1 Jul 28, 2012 05:12 AM

Forum Jump

All times are GMT -5. The time now is 04:08 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC