billziss-gh / EnergyBar

Supercharge your Mac's Touch Bar.
GNU General Public License v3.0
749 stars 34 forks source link

Feature Request: Default to showing the dock when it is hidden in clamshell mode #41

Open vk2fro opened 5 years ago

vk2fro commented 5 years ago

Many users like myself use their machines as a desktop replacement as well as a portable. It would be nice to see an option when the machine is on battery power, and the user goes to the advance page and chooses to hide the dock, a tick box below that option appears which is titled something like "Automatically switch this setting depending on wether the machine is woken or started in clamshell mode". A simple description of this toggle could be "This option automatically toggles the "Show/Hide" dock feature depending on wether you have the lid open or closed while using the machine, for example, when using an external display with the lid closed"

Ticking the option would cause Energybar to do a check when the machine is booted or woken to see if the lid is closed, and an external display is connected. If so it automatically displays the dock. If the lid is open, it hides the dock, as usually the user is using both of the screens and the internal keyboard, or simply using it as a laptop away from their external monitor. It would not switch the dock back off until it senses the machine is opened with no external gpu or display connected.

I love the app, and a simple command space, and typing en + enter will bring up the energy bar app to change the setting without having to open the lid when I come home and connect it to my egpu, but it seems like a good feature to have for desktop users who often take their notebooks with them to other rooms, or away from home.