Feature Request: Option to hide default macOS app label
Opened this issue · 11 comments
I think it would be a great addition to the app to be able to get rid of the default text label so that it doesn't obstruct the window preview (the text "Notion" in it's own bubble in the image below"). Tbh I think this would be great as the default setting for DockDoor since DockDoor can already list the app name in the top left of the window if desired. Love where the app is going! Thanks for your work.
I wonder if this is even possible without changes in Dock.app
(which would require the removal of macOS System Integrity Protection)
Do you know of any app out there that can do this?
I wonder if this is even possible without changes in
Dock.app
(which would require the removal of macOS System Integrity Protection) Do you know of any app out there that can do this?
I was researching about this yesterday and I did find a script that someone made, and I am pretty sure that it is possible to do without disabling SIP. Here is the link to the said script: https://github.com/vicneamt/dock_title (Original version), My Version: https://github.com/UnknownCrafts/dock_title (I am working on ironing out some bugs from the OG version). Basically, it edits the "~/Library/Preferences/com.apple.dock.plist" to hide the app titles. One issue I am facing right now is that if an app that is not a persistent dock app and the recent apps functionality is disabled, is running then for whatever reason the dock.plist file wouldn't have any mention of that app meaning we can't strip its title away. Also I think that DockDoor would have to consistently monitor the dock for any app changes so that it can keep on stripping app titles, at least that's what my understanding is so far.
Also, important to mention, the dock plist file doesn't always exist. A user needs to customize their dock in some way to generate that file for the first time. We will need to communicate this within the app if we can port your script.
Ah, I actually didn't know about that. Maybe DockDoor could handle that if this feature is enabled? maybe by first hiding or unhiding the dock (I am not sure if that's enough to generate the plist)
I don't think it can be done automatically. The only way we can modify the dock programmatically is via that plist file. Which came first, the chicken or the egg? We have that situation lol, we will need to instruct the user to do it manually.
Like "to generate the plist file, close DockDoor, open your system settings, change the dock's magnification setting a few times and restart the app, it should work."
video.mp4
Also I am not sure if its generating a new one again because I have already modified the dock a long time ago.
Can't we use applescript or something? Like
tell application "System Events"
tell dock preferences to set autohide to not autohide // Switch Setting
tell dock preferences to set autohide to not autohide // Make it go back to the original
end tell
Oh good point, tbh I'm not familiar with Apple Script.
https://forums.developer.apple.com/forums/thread/98830 (Pray to Apple overlords that this isn't deprecated), seems like its also kinnda painless to integrate Applescript in swift apps. I have some experience creating stuff with AppleScript, mainly thanks to creating shortcuts in Monarch.
I'm pretty sure DockView (paid app) has this ability. I know really nothing about coding, but I have a hunch that DockView "hijacks" the default macOS label to make their window previews. I'm basing this solely on how their window preview has the same style on bottom as the macOS default label, so I could be totally off-base here. But using DockView, I didn't have to disable SIP or do anything crazy. It just shipped like this. Here's a picture:
And here's the link to the app (free trial if you want to test it out and see what it looks like): https://noteifyapp.com/dockview/
What other applications do is place the window in front of the name, so the dock name remains hidden.