[GH-ISSUE #189] How to hide the icons on taskbar? #139

Closed
opened 2026-05-05 05:14:41 -06:00 by gitea-mirror · 17 comments
Owner

Originally created by @valasco on GitHub (Mar 23, 2020).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/189

1st. thx for this app,it works on my display.
but the icon is too ugly :>, how can i hide it? I think it will be gone if I delect it,but I can't find where is it. if there is a way to hide it, please tell me,thx!

best regards!

Originally created by @valasco on GitHub (Mar 23, 2020). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/189 1st. thx for this app,it works on my display. but the icon is too ugly :>, how can i hide it? I think it will be gone if I delect it,but I can't find where is it. if there is a way to hide it, please tell me,thx! best regards!
Author
Owner

@quantumgolem commented on GitHub (Mar 27, 2020):

You can use Bartender or a similar free app to do it

<!-- gh-comment-id:605360875 --> @quantumgolem commented on GitHub (Mar 27, 2020): You can use Bartender or a similar free app to do it
Author
Owner

@JoniVR commented on GitHub (Apr 3, 2020):

I agree that it might be better to just use bartender or vanilla to hide the icons you want to hide.

If we allow you to hide the icon there’s no way to access your preferences with the current implementation.

<!-- gh-comment-id:608343476 --> @JoniVR commented on GitHub (Apr 3, 2020): I agree that it might be better to just use bartender or vanilla to hide the icons you want to hide. If we allow you to hide the icon there’s no way to access your preferences with the current implementation.
Author
Owner

@realav commented on GitHub (Apr 21, 2020):

We can implement this feature like Rectangle app.
Screen Shot 2020-04-21 at 8 45 30 PM

<!-- gh-comment-id:617246658 --> @realav commented on GitHub (Apr 21, 2020): We can implement this feature like **[Rectangle app.](https://github.com/rxhanson/Rectangle)** <img width="476" alt="Screen Shot 2020-04-21 at 8 45 30 PM" src="https://user-images.githubusercontent.com/3285444/79883406-7fb37800-8411-11ea-9ea6-4b6d517fc1cc.png">
Author
Owner

@acousticbiker commented on GitHub (Jul 10, 2020):

I agree that it might be better to just use bartender or vanilla to hide the icons you want to hide.

If we allow you to hide the icon there’s no way to access your preferences with the current implementation.

Thanks, JoniVR - great app that fills a curious gap in macOS. If you're open to reconsidering, I too would appreciate an option to hide the menubar icon, since once preferences have been set initially there's not much reason to go back to it.

<!-- gh-comment-id:656870455 --> @acousticbiker commented on GitHub (Jul 10, 2020): > I agree that it might be better to just use bartender or vanilla to hide the icons you want to hide. > > If we allow you to hide the icon there’s no way to access your preferences with the current implementation. Thanks, JoniVR - great app that fills a curious gap in macOS. If you're open to reconsidering, I too would appreciate an option to hide the menubar icon, since once preferences have been set initially there's not much reason to go back to it.
Author
Owner

@JoniVR commented on GitHub (Jul 10, 2020):

I agree that the rectangle implementation might work pretty well, PR's always welcome though! 🙂

<!-- gh-comment-id:656873188 --> @JoniVR commented on GitHub (Jul 10, 2020): I agree that the rectangle implementation might work pretty well, PR's always welcome though! 🙂
Author
Owner

@Mobofunk commented on GitHub (Jul 17, 2020):

Just signed up to Git to also request this feature, the rectangle way sounds nice to me :)

Thanks for the app, working well on my 2 x Philips 328e1ca monitors

<!-- gh-comment-id:659941422 --> @Mobofunk commented on GitHub (Jul 17, 2020): Just signed up to Git to also request this feature, the rectangle way sounds nice to me :) Thanks for the app, working well on my 2 x Philips 328e1ca monitors
Author
Owner

@raivivek commented on GitHub (Aug 13, 2020):

Or something like, show up only when external display is connected would also be nice. Thanks again for the great software.

<!-- gh-comment-id:673227103 --> @raivivek commented on GitHub (Aug 13, 2020): Or something like, show up only when external display is connected would also be nice. Thanks again for the great software.
Author
Owner

@sdaitzman commented on GitHub (Nov 13, 2020):

Gigantic +1 on this issue ☺️

<!-- gh-comment-id:726744805 --> @sdaitzman commented on GitHub (Nov 13, 2020): Gigantic +1 on this issue ☺️
Author
Owner

@realav commented on GitHub (Nov 18, 2020):

I easily implemented in my build by using applicationShouldHandleReopen

func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self) return true }

<!-- gh-comment-id:729480555 --> @realav commented on GitHub (Nov 18, 2020): I easily implemented in my build by using **applicationShouldHandleReopen** `func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self) return true } `
Author
Owner

@sdaitzman commented on GitHub (Nov 18, 2020):

@legendaryaman where do you make that change? Do you have a fork somewhere? Thanks so much! 😃

<!-- gh-comment-id:729635380 --> @sdaitzman commented on GitHub (Nov 18, 2020): @legendaryaman where do you make that change? Do you have a fork somewhere? Thanks so much! 😃
Author
Owner

@sdaitzman commented on GitHub (Nov 18, 2020):

Oh I see, you added it within AppDelegate.swift inside the AppDelegate class. I had to add a semicolon to get it to compile:

func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self); return true }

This adds my expected behavior of "the preferences pop up when you open the app again" but does not hide the icon. Is there an easy way to do that? I'm also poking into the code to try and see.

<!-- gh-comment-id:729644345 --> @sdaitzman commented on GitHub (Nov 18, 2020): Oh I see, you added it within AppDelegate.swift inside the AppDelegate class. I had to add a semicolon to get it to compile: ```swift func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self); return true } ``` This adds my expected behavior of "the preferences pop up when you open the app again" but does not hide the icon. Is there an easy way to do that? I'm also poking into the code to try and see.
Author
Owner

@realav commented on GitHub (Nov 19, 2020):

Oh I see, you added it within AppDelegate.swift inside the AppDelegate class. I had to add a semicolon to get it to compile:

func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self); return true }

This adds my expected behavior of "the preferences pop up when you open the app again" but does not hide the icon. Is there an easy way to do that? I'm also poking into the code to try and see.

Just comment out these two lines in AppDelegate

self.statusItem.image = NSImage(named: "status")
self.statusItem.menu = self.statusMenu

Status bar menu will also disappear after this change so don't forget to add a quit button in MainPrefsViewController
@IBAction func quitButton(_: AnyObject) { app.quitClicked(self) }

<!-- gh-comment-id:730116213 --> @realav commented on GitHub (Nov 19, 2020): > Oh I see, you added it within AppDelegate.swift inside the AppDelegate class. I had to add a semicolon to get it to compile: > > ```swift > func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool { self.prefsClicked(self); return true } > ``` > > This adds my expected behavior of "the preferences pop up when you open the app again" but does not hide the icon. Is there an easy way to do that? I'm also poking into the code to try and see. Just comment out these two lines in **AppDelegate** `self.statusItem.image = NSImage(named: "status")` ` self.statusItem.menu = self.statusMenu` Status bar **menu** will also disappear after this change so don't forget to add a quit button in **MainPrefsViewController** `@IBAction func quitButton(_: AnyObject) { app.quitClicked(self) }`
Author
Owner

@sdaitzman commented on GitHub (Nov 19, 2020):

@legendaryaman thank you!!

<!-- gh-comment-id:730116900 --> @sdaitzman commented on GitHub (Nov 19, 2020): @legendaryaman thank you!!
Author
Owner

@xflashxx commented on GitHub (Feb 15, 2021):

Could you folks who managed to hide the icon in the menu bar please share the files you changed (or say where to insert/delete code) and give instructions how to build the app using Xcode for less experienced users who do not want to wait until this feature is integrated (if ever)?
Would be really cool and for sure be appreciated by many reading this here!

<!-- gh-comment-id:779125179 --> @xflashxx commented on GitHub (Feb 15, 2021): Could you folks who managed to hide the icon in the menu bar please share the files you changed (or say where to insert/delete code) and give instructions how to build the app using Xcode for less experienced users who do not want to wait until this feature is integrated (if ever)? Would be really cool and for sure be appreciated by many reading this here!
Author
Owner

@8va commented on GitHub (May 18, 2021):

I also wouldn't know how to put together a custom build myself but would really appreciate this feature.

<!-- gh-comment-id:843548789 --> @8va commented on GitHub (May 18, 2021): I also wouldn't know how to put together a custom build myself but would really appreciate this feature.
Author
Owner

@waydabber commented on GitHub (Aug 9, 2021):

I added an option for that in settings.

Screen Shot 2021-08-09 at 15 53 08

(note: it will be in the upcoming 3.0.0 release)

<!-- gh-comment-id:895244311 --> @waydabber commented on GitHub (Aug 9, 2021): I added an option for that in settings. <img width="572" alt="Screen Shot 2021-08-09 at 15 53 08" src="https://user-images.githubusercontent.com/37590873/128717500-082dd9ef-8160-40e2-9948-659952652261.png"> (note: it will be in the upcoming 3.0.0 release)
Author
Owner

@JoniVR commented on GitHub (Aug 11, 2021):

Should be added in v3.0.0 Beta 6. If you have problems, please report them in #509

<!-- gh-comment-id:897053843 --> @JoniVR commented on GitHub (Aug 11, 2021): Should be added in v3.0.0 Beta 6. If you have problems, please report them in #509
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/MonitorControl#139
No description provided.