🔧 Add switch to UI

This commit is contained in:
Simon Schneegans
2023-01-07 13:25:36 +01:00
parent c7488c6646
commit 09f2b3bde9
5 changed files with 101 additions and 4 deletions
-4
View File
@@ -89,15 +89,11 @@ class Extension {
'/org/freedesktop/UPower');
// This is used to get the current power profile.
// Ab 41??
const PowerProfilesProxy = Gio.DBusProxy.makeProxyWrapper(
utils.getStringResource('/interfaces/net.hadess.PowerProfiles.xml'));
this._powerProfilesProxy = new PowerProfilesProxy(
Gio.DBus.system, 'net.hadess.PowerProfiles', '/net/hadess/PowerProfiles');
utils.debug(this._powerProfilesProxy);
utils.debug(this._powerProfilesProxy.get_connection());
// We will monkey-patch these methods. Let's store the original ones.
this._origAddWindowClone = Workspace.prototype._addWindowClone;
this._origWindowRemoved = Workspace.prototype._windowRemoved;