GNOME 45 WIP

This commit is contained in:
wheaney 2024-03-27 13:38:13 -07:00
parent 8ba4f790c0
commit a109b5e897
2 changed files with 10 additions and 16 deletions

View File

@ -1,17 +1,12 @@
const Lang = imports.lang; import Gio from 'gi://Gio';
const St = imports.gi.St; import GLib from 'gi://GLib';
const Clutter = imports.gi.Clutter; import GObject from 'gi://GObject';
const Gio = imports.gi.Gio; import Shell from 'gi://Shell';
const GLib = imports.gi.GLib; import Meta from 'gi://Meta';
const GObject = imports.gi.GObject;
const Cogl = imports.gi.Cogl;
const Shell = imports.gi.Shell;
const Meta = imports.gi.Meta;
const ExtensionUtils = imports.misc.extensionUtils; import ExtensionUtils from 'gi://ExtensionUtils';
const Me = ExtensionUtils.getCurrentExtension(); import Main from 'gi://Main';
const Main = imports.ui.main; import PanelMenu from 'gi://PanelMenu';
const PanelMenu = imports.ui.panelMenu;
const UINT8_SIZE = 1; const UINT8_SIZE = 1;
const BOOL_SIZE = UINT8_SIZE; const BOOL_SIZE = UINT8_SIZE;
@ -200,7 +195,7 @@ function setIntermittentUniformVariables() {
} }
class Extension { export default class ExampleExtension extends Extension {
enable() { enable() {
var XREffect = GObject.registerClass({}, class XREffect extends Shell.GLSLEffect { var XREffect = GObject.registerClass({}, class XREffect extends Shell.GLSLEffect {
vfunc_build_pipeline() { vfunc_build_pipeline() {
@ -212,7 +207,6 @@ class Extension {
this._frametime = 10; // 100 FPS this._frametime = 10; // 100 FPS
} }
// TODO - read IMU data and update uniform variables
vfunc_paint_target(node, paintContext) { vfunc_paint_target(node, paintContext) {
if (!this._initialized) { if (!this._initialized) {
this._shared_mem_file = Gio.file_new_for_path("/dev/shm/imu_data"); this._shared_mem_file = Gio.file_new_for_path("/dev/shm/imu_data");

View File

@ -3,7 +3,7 @@
"name": "Breezy GNOME", "name": "Breezy GNOME",
"description": "XR virtual desktop for Linux.", "description": "XR virtual desktop for Linux.",
"shell-version": [ "shell-version": [
"43", "44" "45", "46"
], ],
"url": "https://github.com/wheaney/breezy-desktop" "url": "https://github.com/wheaney/breezy-desktop"
} }