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
1
vote
1 answer

Display AboutDialog from GNOME Shell Extension

I'm trying to display a Gtk.AboutDialog from my GNOME Shell extension. I wrote the following function: _showAbout: function() { var authors = ["Ralf"]; // Create the About dialog let aboutDialog = new Gtk.AboutDialog({ title: "About…
Ralf
  • 1,773
  • 8
  • 17
1
vote
1 answer

Should I use ES6 or Lang classes when developing Gnome Shell and Extensions?

I'm deving a simple gnome shell extension and in the HACKING.md of gnome shell repo, it says that we should use new Lang.Class() language framework to initializing a class. But, when I check the official gnome-shell extensions repo examples, every…
1
vote
1 answer

Gnome shell extension parameters location

More of a user question, I wanted to know where are stored Gnome Shell Extension parameters, I mean user-specific parameters for each extensions ? To be more specific, here's an example: I installed Media Player Indicator on my former system and I…
BFlat
  • 174
  • 11
1
vote
1 answer

Clutter.Text's set_editable() doesn't seem work

I'm trying to create an editable multi-line text box by using the Clutter.Text's set_editable() method: let label = new St.Label({ text: 'My dummy example.' }); label.clutter_text.set_editable(true); label.clutter_text.set_activatable(true); But it…
luvejo
  • 347
  • 2
  • 9
1
vote
1 answer

How do I get the monitor of an active window in GNOME?

I am very new to GNOME extension development, and I am having a hard time working with it, due to a profound lack of documentation (or maybe my Internet is clandestinely censored) of the API. I started by modifying an existing extension, so that it…
Valentin Radu
  • 629
  • 1
  • 11
  • 26
1
vote
1 answer

Docs for developing gnome shell extensions

I need to know when inFullscreen of monitor object is set to true, I wanna make sure it's not set to true when window is maximized. I can't find any docs for imports.ui.main nor any imports.ui.*. That's simple (but still annoying) I can hold alt and…
Sassan
  • 2,187
  • 2
  • 24
  • 43
1
vote
1 answer

How to correctly use the linear-gradient while styling GNOME shell?

I'm working on a gnome-shell extension and I can't get the linear-gradient to work properly (or at all, in fact). The GTK documentation or this post state that we should be able to use something like this: label { background-image:…
ChG
  • 349
  • 1
  • 3
  • 13
1
vote
1 answer

How do I create a global key-binding in a gnome-shell extension

I'm running Ubuntu Gnome, gnome shell version 3.24.2. I'm trying to create a gnome shell extension, and am using Javascript. In my extension and in Javascript, how do I create a global key binding that is recognized from anywhere in Gnome? I want to…
1
vote
1 answer

chrome-gnome-shell causing crash?

I am not sure if this has been answered as I am not really sure of the problem. At least once (sometimes more) during the day I get a notice that Ubuntu crashed. The info says it's related to the chrome-gnome-shell(I have reinstalled…
Lee
  • 491
  • 4
  • 15
1
vote
1 answer

Gnome Shell Extension Override C API?

This may be a question where the answer can be a url to a descent gnome shell extension tutorial because I'm not finding one. The Problem I have, which I want to solve with a Gnome Extension In the gnome settings daemon (see…
Adergaard
  • 760
  • 10
  • 24
1
vote
1 answer

Create a dynamic rescheduling GSource in JavaScript

GLib's main loop supports scheduling callback functions for periodic intervals, using g_timemout_source_new and related functions. The callback will repeatedly be called after the scheduled interval, until it returns false. I now want to modify this…
XZS
  • 2,374
  • 2
  • 19
  • 38
1
vote
1 answer

How to use Basic Auth with libsoup via Gjs

I'm trying to query github's api with a token. Github's api accepts generated tokens provided that they're sent as a basic auth header. The API do not return HTTP 401 if the call is made without auth which means if one wants to query their api using…
alexduf
  • 11
  • 2
1
vote
0 answers

How does Mutter/Window Groups work in Gnome?

the Shelltile-Extension for Gnome 3 (https://extensions.gnome.org/extension/657/shelltile/ where you also find a link to github) can group Windows such that they are treated as one by Gnome. I would like to understand how this is done since it looks…
milaidin
  • 11
  • 2
1
vote
1 answer

Soup - POST request with authentication

I'm working on a Gnome-shell extension, and I'm stuck in using Soup to contact a server. Basically, I want to send a POST request which can be performed after authentication. If authenticated, the response if a JSON content, and if not…
1
vote
0 answers

Passing uniform array to CSGL shader from gnome extension

I have a CSGL shader that declares this uniform... uniform float Targets[6]; I'm writing a gnome extension that attempts to set this with the following code in extension.js... let fx = new Clutter.ShaderEffect( { shader_type:…
K Johnson
  • 478
  • 5
  • 14