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
80
votes
8 answers

How to test / debug GNOME Shell extensions? Is there any tool for that?

I would like to develop GNOME Shell extensions and found it's really easy to step into the development process but I still can't figure out how to debug / test my extensions effectively. Are there any tools for that purpose? Is there any kind of…
marcio
  • 10,002
  • 11
  • 54
  • 83
80
votes
3 answers

Documentation for writing GNOME Shell extensions

I've been asked to customise the layout of the GNOME 3 desktop. Apparently the way to do that is by writing an "extension". I've managed to do some of the things I wanted to do, but I feel utterly starved of information. I cannot find any useful…
MathematicalOrchid
  • 61,854
  • 19
  • 123
  • 220
26
votes
2 answers

How to handle keyboard events in gnome shell extensions?

How can I add an event or other method to listen to keypresses on a gnome shell extension? e.g. show a dialog with each key press showing the pressed key? I can not find any example. The documentation mentions a keyboard module, but with that common…
gcb
  • 13,901
  • 7
  • 67
  • 92
22
votes
8 answers

GNOME Shell integration extension is running, native host connector is not detected?

I have followed these steps while installing the gnome extension of chromium in Ubuntu 20.04. Installed the GNOME Shell integration extension on chromium. As per their documentation ran a command to install chrome-gnome-shell sudo apt-get install…
Digvijay Rathore
  • 637
  • 1
  • 6
  • 21
17
votes
6 answers

Gnome Shell extensions not loading, no error message available

I have two gnome-shell extensions that don't appear to be loading after upgrading to 3.24. In gnome-tweak-tool they have a warning sign icon with "Error loading extension", and nothing else. I tried using looking glass (lg), and it just says…
Ben Davis
  • 13,112
  • 10
  • 50
  • 65
17
votes
0 answers

Use Eclipse as GNOME Extension IDE

I am trying to develop my own GNOME Extension. I have read several articles: gnome-shell-extensions-getting-started gnome-whiteboards-hello-ide and the official one. StepByStepTutorial#fromScratch-settingUpEclipse From wiki.gnome.org: It is…
Zic0
  • 181
  • 4
14
votes
1 answer

How to work GNOME's Looking Glass?

I want to step into extension development for Gnome Shell, but I can't seem to understand how I do a few tasks in Looking Glass lg to actually debug my stuff. When I type global.log("hi"); into LG, it throws me back r(...) = undefined. Why? When I…
Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102
13
votes
4 answers

How to colorize the output of Python errors in the Gnome terminal?

Note: I am asking this question after researching how to actually do it. Other questions which are somewhat similar, but actually differ from my question relate to: Color-coding within the python script Importing color libraries within the…
Shailen
  • 7,909
  • 3
  • 29
  • 37
13
votes
3 answers

Gnome Shell Extension Key Binding

What is the simplest way to (globally) bind a key combination (e.g. +A) to a function in a gnome shell extension? Inspecting a couple of extensions, I ran into the following code: global.display.add_keybinding('random-name', …
11
votes
2 answers

How do I call out to a command-line program from a gnome shell extension?

I have written a simple shell script to accomplish a common task, and I want to be able to run it whenever a button is clicked. I've used gnome-shell-extension-tool to create the Hello World example already, but now I need to know how to simply have…
Jorenko
  • 2,594
  • 2
  • 21
  • 26
10
votes
1 answer

GJS: Gtk.TextView key-press-event does not work

I am trying to create simple gtk application for gnome-shell using gjs. Its window contains Gtk.TextView only and I want to process events when user is typing. Here is my code: #!/usr/bin/gjs var Gtk = imports.gi.Gtk; function MainWindow () { …
10
votes
2 answers

Gnome shell privilege escalation

I'm building a Gnome shell extension, and I want to be able to do some things with escalated privileges. So, I'm thinking I need to use "policy kit", but I don't know how to do go about doing this. So, say I wanted to do something like ifconfig…
Jay
  • 983
  • 2
  • 8
  • 23
9
votes
1 answer

GNOME Shell Extension Install possible without Restart?

I have written a small GNOME Shell extension, that I want to distribute to some collegues. For this I created a RPM. After the installation a restart of GNOME-Shell is needed to make the extension visible, so it can be enabled. Either by using…
Ralf
  • 1,773
  • 8
  • 17
9
votes
3 answers

How to properly start a Gnome-Shell extension via command line?

After copying myexentension@me.com folder to .../gnome-shell/extensions/ I'm executing this command on the terminal: gnome-shell-extension-tool -e myexentension@me.com Then, I restart my session with Alt + F2 and execute r, and everything works…
GusMilc
  • 319
  • 3
  • 14
9
votes
2 answers

Can GNOME Shell extensions move the pointer? If so, how?

I want to write an extension that does the opposite of the "focus-follows mouse" setting in GNOME Shell: I want to make my pointer move to the center of the currently focused window. Can this be done in a GNOME Shell extension? I see some GNOME code…
BrianTheLion
  • 2,618
  • 2
  • 29
  • 46
1
2 3
14 15