via mastodon https://fedi.reimu.info/notice/Aux2NpiEEezYt7BgsC
seen from United States
seen from China
seen from Australia
seen from Taiwan
seen from United States
seen from China

seen from Malaysia

seen from United Kingdom

seen from United States

seen from Spain
seen from United States

seen from United States

seen from France
seen from Türkiye
seen from China

seen from Mexico

seen from Malaysia

seen from Malaysia
seen from United States
seen from United States
via mastodon https://fedi.reimu.info/notice/Aux2NpiEEezYt7BgsC
A hideous piece of shit...
SWAG
3/14: The only problem now is that Ms. Trellis hates seeing it empty.Today’s strip
140806 Toward a minimalistic Dock experience
This article is long due. Anyway here it is. Also on Gist.
1. Make the trash icon hidable
Add the following to /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist under the trash array:
<dict> <key>command</key> <integer>1004</integer> <key>name</key> <string>REMOVE_FROM_DOCK</string> </dict>
It is said that defaults write could also be used:
sudo defaults write /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus trash -array-add \ '<dict><key>command</key><integer>1004</integer><key>name</key><string>REMOVE_FROM_DOCK</string></dict>' sudo chmod 644 /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist
Relaunch Dock by
killall Dock
Now the Trash icon becomes hidable, in the sense that when you right click on the Trash icon in the Dock, there is a "Remove from Dock" option.
In fact, we should also move the separator images in Dock's resources to remove the separator (the space will always be there, unfortunately). My script to perform this entire step:
#!/bin/bash be sudo cp /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist.bak be sudo defaults write /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus trash -array-add "'<dict><key>command</key><integer>1004</integer><key>name</key><string>REMOVE_FROM_DOCK</string></dict>'" be sudo chmod 644 /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist be sudo mv /System/Library/CoreServices/Dock.app/Contents/Resources/separator.png /System/Library/CoreServices/Dock.app/Contents/Resources/separator.png.bak be sudo mv /System/Library/CoreServices/Dock.app/Contents/Resources/[email protected] /System/Library/CoreServices/Dock.app/Contents/Resources/[email protected] be killall Dock cat <<EOF check the updated content of the plist by running: $(tput setaf 4)sudo plutil -convert xml1 -o - /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist | less$(tput sgr0) EOF
be is my script to do echo-and-run in Bash. It is as simple as
#!/bin/bash # bash: echo and run echo "$(tput setaf 6)$@$(tput sgr0)" eval "$@"
2. Use GUI Scripting to hide the trash icon
#!/usr/bin/osascript tell application "System Events" to tell UI element "Trash" of list 1 of process "Dock" perform action "AXShowMenu" click menu item "Remove from Dock" of menu 1 end tell
Note that the first time you run this script, you will get an error
execution error: System Events got an error: osascript is not allowed assistive access. (-1719)
and be prompted to enable assistive access in System Preferences/Security & Privacy/Privacy/Accessibility. In my case I need to enable iTerm.app since I execute the script in iTerm2 (see the shabang). Note that I also changed the "Open with" attribute of the script to iTerm.app in Finder.
3. Add the AppleScript to login items
And you are all set.
How it looks:
Also a minimal menu bar.