adds an option to automatically inhibit sleep when a laptop is connected to a docking station.
there is no standard way to identify a docking station, so it makes an assumption based on the following:
IF the device has a battery
AND the device is currently connected to a power adapter
AND the device is currently connected to at least one external monitor
THEN assume this is a docking station
adds an option to automatically inhibit sleep when a laptop is charging
makes the fullscreen inhibition setting reactive (it no longer requires a logout to take effect)
adds an editorconfig file and fixes existing files accordingly
makes the settings widget reactive: if the extension modifies a setting, it is reflected instantly without having to reopen the panel
allows to temporarily override the settings without changing them: if, for example, Espresso is turned on because the laptop is charging, the user can turn it off without disabling the turn-on-while-charging option
prevents race conditions by queuing operations while an other operation is already in progress
adds more debug information: logs can be audited with Gnome Logs by searching for the string Espresso:
Usage
enable the new option in the extension settings (opt-in)
plug the laptop into a docking station or connect a charger
Known issues
fixed:in prefs.js, the option is shown regardless of whether the device has a battery
imports.ui is not accessible in prefs.js so currently there is no way to test the device type against UPower.DeviceKind.BATTERY and hide the option when relevant
Espresso:
Usage
Known issues
inprefs.js
, the option is shown regardless of whether the device has a batteryimports.ui
is not accessible inprefs.js
so currently there is no way to test the device type againstUPower.DeviceKind.BATTERY
and hide the option when relevant