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
2
votes
1 answer

How does the "shell-versions" variable in metadata.json work, exactly?

I've seen several approaches in metadata.json, some only specifying whole versions, such as "3.22" while some with more specific such as "3.22.1". I had an issue opened where I had "3.24", "3.24.1" and "3.24.2" but the extension failed to work in…
andy.holmes
  • 3,383
  • 17
  • 28
2
votes
0 answers

How to disable keyboard shortcut overlay that appears on super key hold in gnome desktop?

I want to disable the keyboard shortcut overlay that appears on holding Super key in gnome desktop. How do I disable this? I'm using Ubuntu Gnome 17.04. I've searched and found the suggested…
2
votes
0 answers

How to customize GNOME Shell Search bar?

I would like to include stackoverflow, duckduckgo and some other search results in GNOME Shell Search result. So, I think a GNOME Shell Extension will be the solution. Is it possible?
Mubaris NK
  • 21
  • 3
2
votes
1 answer

Including binary components in a GNOME Shell extension

Developing extensions for the GNOME Shell mostly involves the use of C APIs through GObject Introspection. This means that most things achievable with C can be done in JavaScript, too. But there are some cases, where features of the C APIs cannot…
XZS
  • 2,374
  • 2
  • 19
  • 38
2
votes
1 answer

Transparency/brightness of inactive/unfocused windows in GNOME Shell

Is it possible to make inactive windows (i.e., windows without focus) less opaque, more transparent, less bright or somehow shaded in GNOME Shell? I'd like to have stronger visual feedback on which window is currently active / focused.
2
votes
1 answer

ClutterShaderEffect with gnome extension

The purpose of my project is to implement a shader and attach it on stage. I want a whole screen deformation using JS gnome extension system. (I did it in C and recompile gnome but I would like to use a technology without any compilation…
2
votes
1 answer

read asynchronous stdout from gjs

I am trying to run a command from gjs and read the output asynchronously. here is my synchronous code let [res, pid, in_fd, out_fd, err_fd] = GLib.spawn_async_with_pipes(null, ['/bin/ls'], null, 0,…
2
votes
0 answers

Draw on background of Gnome Shell panel

I want to visualize some data on the background of the Gnome Shell top panel, behind all of the other elements. Like in this mockup: https://i.stack.imgur.com/tv1aH.jpg Playing around with other extensions and reading through the St API docs [2] I…
some_guy
  • 73
  • 1
  • 1
  • 4
2
votes
1 answer

How can your gnome-shell-extension grab key focus?

I have a BoxLayout with multiple actors in it. One of the actors is a St.Entry. I want this Entry to have keyboard-focus, so when the window is created, I can start typing right away. I already found the "grab_key_focus()" method, but if I call…
Algram
  • 94
  • 11
2
votes
1 answer

Gnome-shell-extension destructor (run on Gnome Shell exit)?

Is there any trick to run my "destructor" code in an extension when Gnome Shell is closing (e.g. computer turning off)? I need to save some state variables to load them again in init() on start. I need something like function enable() or disable().…
Bobas
  • 23
  • 2
2
votes
3 answers

How to debug on GNOME Shell 3.6, 3.8 or newer

I developed my own gnome-shell extension that worked on GNOME Shell 3.4 and GNOME Shell 3.6. It's not working on GNOME Shell 3.8 and I can't find out why because I don't know where to access to any logs. On GNOME Shell 3.4, using Looking Glass,…
PauGNU
  • 783
  • 3
  • 12
  • 32
2
votes
0 answers

How to get the gnome icon name from a folder path in a Cinnamon applet

I created a "Places" Cinnamon applet (a drop down list filled with folders). And I would like to get the gnome icon name of a specific folder path. For instance, I would like to get the gnome icon name from the music folder "/home/USER/Music" which…
Nicolas
  • 6,289
  • 4
  • 36
  • 51
1
vote
1 answer

Settings as a modal for a gnome shell extension

I'm working a Gnome Shell Extension and this one will require some settings (a path to a folder, an url and checkbox (switch on/off)). I was wondering if it was possible to make it only using javascript for Gnome 3, or something like Python was…
Cyril N.
  • 38,875
  • 36
  • 142
  • 243
1
vote
0 answers

Gnome extensions not working after upgrading to gnome-shell 44.2

After upgrading to gnome-shell 44.2, none of the extensions are working. When I open gnome-extensions-app, it shows: I am unable to enable any of the extensions. If I browse to https://extensions.gnome.org/local/, it lets me flip the toggles for…
Chelmite
  • 360
  • 3
  • 18
1
vote
0 answers

St.TextureCache overflowing St.Bin in gnome-shell JS

I'm trying to make a gnome-shell extension where I need to load an image from an URL / URI. I can do that with St.TextureCache and that works great. I then try to put it in an St.Bin container, but the texture overflows the container (as shown in…
wa4557
  • 953
  • 3
  • 13
  • 25