Initial commit
A plugin for metacity-clutter (mutter) that initializes Javascript and via Javascript adds an object to the mutter scene graph. src/gnome-shell-plugin.c: metacity-clutter-plugin src/shell-global.[ch]: Simple global-information object js/: Directory for javascript scripts/start-in-Xephyr: Launch metacity with our plugin "nested" within an Xephy X server svn path=/trunk/; revision=2
This commit is contained in:
13
js/ui/main.js
Normal file
13
js/ui/main.js
Normal file
@ -0,0 +1,13 @@
|
||||
const Shell = imports.gi.Shell;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
|
||||
function start() {
|
||||
let global = Shell.global_get();
|
||||
|
||||
let message = new Clutter.Label({font_name: "Sans Bold 64px", text: "DRAFT"});
|
||||
message.set_opacity(75);
|
||||
// Not working for unclear reasons
|
||||
// message.set_rotation(Clutter.RotateAxis.Z_AXIS, - 45, 0, 0, 0);
|
||||
message.set_position(100, 100);
|
||||
global.get_overlay_group().add_actor(message);
|
||||
}
|
Reference in New Issue
Block a user