Questions tagged [gnome-shell-extensions]

The Gnome Shell (Gnome 3) offers JavaScript bindings to customize and extend the shell behavior.

Extension-catalog

Developing

The JavaScript bindings are based on the Gjs project (see ), which has more documentation.

222 questions
3
votes
1 answer

Create a GNOME shell extension that enables and disables the webcam

I would like to create a shell extension for Ubuntu 20.04 that enables and disables the webcam but I don't know absolutely anything about JavaScript. Although, the extension is pretty simple: I would like to make a simple camera icon in the top bar…
0xFR
  • 108
  • 9
3
votes
1 answer

Avoid allocation errors with destroy() and async functions

The following is a simple scenario for some GNOME extension: Enable the extension. The extension is a class which extends Clutter.Actor. It creates an actor called myActor and adds it: this.add_child(myActor). Then it calls an…
3
votes
1 answer

How can I test my GNOME Shell extension without risk of crashing the shell?

During development, I introduced an error to my extension that causes gnome-shell to crash upon trying to load the extension with the following rather broadly phrased error message: Execution of main.js threw exception: JS_EvaluateScript()…
raphinesse
  • 19,068
  • 6
  • 39
  • 48
3
votes
1 answer

Is it possible to import the Gvc typelib outside of the Gnome Shell environment?

I'd like to use Gvc (libgnome-volume-control) as used in Gnome Shell GIR in GJS, but can't find a way to access it except within the Gnome Shell environment (eg. a Gnome Shell extension). Actually, I can't even figure out where it is. Is this…
3
votes
1 answer

What is the correct way in GJS to define a GObject property for an Array?

I see in the GJS GObject overrides there are definitions for most types that correspond to Javascript types, but how should I define a property for a standard Array of strings? Some options that have occurred to me: use TYPE_OBJECT and a GList, but…
andy.holmes
  • 3,383
  • 17
  • 28
3
votes
1 answer

GNOME Shell Extension Button

I'm trying to write an extension with just using JavaScript. I wrote it with Python through Hello World! code. But, yet in the beginning, my button for menu items is not working. Also, I couldn't add menu item with Hello World! code. I think, I miss…
3
votes
0 answers

Catch move event in Clutter Actor but stay transparent for other interactions

I want to build a Gnome shell extension that highlights the mouse cursor. I have a working prototype of a Clutter Actor that draws above all other windows, but mouse movements are only tracked when no other windows are behind the test canvas. My…
tobias47n9e
  • 2,233
  • 3
  • 28
  • 54
3
votes
1 answer

How to grab keystrokes in Gnome Shell

I'm trying to write my first Shell extension and - as every blog post out there - I am too struggling with the lack of up-to-date documentation... Namely I am trying to grab all key strokes from the keyboard, and - looking at code online and old…
mac
  • 42,153
  • 26
  • 121
  • 131
3
votes
1 answer

How to send a string to a gnome-shell extension?

I think D-Bus should be used. Basically, I want something like that — https://wiki.gnome.org/Gjs/Examples/DBusClient — but the other way round. In the extension, there would be a function: function f(s) { doSomethingWithS; } And this function would…
Michal Rus
  • 1,796
  • 2
  • 18
  • 27
3
votes
1 answer

How to show stacktrace for gnome-shell extensions in Gnome Shell 3.16.2?

Today, I upgraded from Debian Jessie (stable) to Stretch (testing), and many extensions I need to work are no longer marked as compatible. I'm quite sure it's no big deal for most of them (maybe just manifest.json to update). But my problem is that…
Bruno Duyé
  • 1,014
  • 11
  • 13
3
votes
2 answers

Getting keyboard modifiers state using Gnome libs (GDK) fetches initial state only

I'm trying to get the current keyboard modifiers state through gnome GDK or GTK library in aim to implement an accessibility gnome shell extension that shows that state. I know how to get thier state using xlib, but there is not full binding for…
user.dz
  • 962
  • 2
  • 19
  • 39
3
votes
2 answers

My gnome-shell extension stops working after a lock-unlock screen cycle

I have written a (very simple) gnome-shell extension to switch focus mode (gnome-shell 3.10 on Ubuntu 14.04). The extension is available on github; I am waiting to submit it because it has a very annoying bug --- which I am unable to understand and…
Rmano
  • 377
  • 10
  • 25
3
votes
2 answers

Handling window focus events in a gnome shell extension

I am developing a gnome shell extension for Gnome 3.4. My extension needs to capture the window events if any editable text is focused in/out. global.stage.connect('notify::focus-key', Lang.bind(this, this._myHandler)); did not work for me. Here…
3
votes
1 answer

Creating gnome-shell applets/widget?

I'm looking to create a simple tool, which will integrate into gnome-shell. I want the tool to be integrated in the "top-right control bar": I want to have an entry in the upper right panel and I need to customize the "Popup" (in the picture, the…
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
2
votes
1 answer

How can I disable multitouch gestures on Ubuntu 22.04

I was using a GNOME extension to disable multitouch gestures on ubuntu 20.04 but it doesn't work with ubuntu 22.04 Does anybody know how to disable this on Ubuntu 22.04?
Cris
  • 347
  • 3
  • 7
1 2
3
14 15