[gnome] Bump extension versions ... I should probably get these out of here
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* extension.js
|
||||
* Copyright (C) 2024 kosmospredanie, shyzus, Shinigaminai
|
||||
* Copyright (C) 2025 kosmospredanie, shyzus, Shinigaminai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -77,6 +77,9 @@ export default class ScreenAutoRotateExtension extends Extension {
|
||||
*/
|
||||
this._timeoutId = setTimeout(() => {
|
||||
this._set_hide_lock_rotate(this._settings.get_boolean('hide-lock-rotate'));
|
||||
|
||||
// Rotate once on start up to the orientation detected by the claimed accelerometer
|
||||
this.rotate_to(this._sensor_proxy.get_accelerometer_orientation());
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
{
|
||||
"_generated": "Generated by SweetTooth, do not edit",
|
||||
"description": "Enable screen rotation regardless of touch mode. Fork of Screen Autorotate by Kosmospredanie.",
|
||||
"donations": {
|
||||
"github": "shyzus"
|
||||
},
|
||||
"gettext-domain": "gnome-shell-extension-screen-rotate",
|
||||
"name": "Screen Rotate",
|
||||
"session-modes": [
|
||||
@ -16,5 +19,5 @@
|
||||
],
|
||||
"url": "https://github.com/shyzus/gnome-shell-extension-screen-autorotate",
|
||||
"uuid": "screen-rotate@shyzus.github.io",
|
||||
"version": 24
|
||||
}
|
||||
"version": 25
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
/* sensorProxy.js
|
||||
* Copyright (C) 2024 kosmospredanie, shyzus
|
||||
* Copyright (C) 2025 kosmospredanie, shyzus
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -64,6 +64,17 @@ export class SensorProxy {
|
||||
this._proxy = null;
|
||||
}
|
||||
|
||||
get_accelerometer_orientation() {
|
||||
if (this._enabled) {
|
||||
let variant = this._proxy.get_cached_property('AccelerometerOrientation');
|
||||
let orientation = variant.unpack();
|
||||
variant.unref();
|
||||
return orientation;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
properties_changed(proxy, changed, _invalidated) {
|
||||
if (!this._enabled) return;
|
||||
let properties = changed.deep_unpack();
|
||||
|
||||
Reference in New Issue
Block a user