Questions tagged [gnome-shell]

GNOME Shell is the core user interface of the GNOME desktop environment starting with version 3.

263 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
36
votes
3 answers

Ctrl+. (Dot) makes "e" appear instead of showing suggestions in VSCode on Gnome

I'm using VSCode on Gnome (on XOrg on Arch). Since lately, the shortcut Ctrl+. stopped working, despite still being listed in the keyboard shortcuts and despite all extensions being disabled. Instead, an underlined e appears: The character goes…
31
votes
2 answers

How to start writing Gnome Shell extensions

I have found it's very hard to find documentation about Gnome Shell Extensions. I found some bits on Gnome Wiki (and it's first-level links), but it's not much: http://live.gnome.org/GnomeShell/Extensions The problem here is GJS and it's bindings.…
lzap
  • 16,417
  • 12
  • 71
  • 108
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
25
votes
2 answers

Gnome 3 (Gnome Shell) JavaScript/CSS engine

I am wondering, which type and version of JavaScript/CSS engines is Gnome 3 aka Gnome Shell using? Is there any information about current version, etc?
hsz
  • 148,279
  • 62
  • 259
  • 315
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
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
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', …
12
votes
2 answers

GNOME Shell Theme css documentation

Where can I find documentation about the GNOME Shell theme css elements? For instance, if I want to change the style of the "Activites" which css class/id do I have to tweak? More in general I'm looking for somethings that maps each gnome shell…
lviggiani
  • 5,824
  • 12
  • 56
  • 89
11
votes
3 answers

Use of Shell object in Gjs

I am writing a gtk+ app using Gjs ( Gnome JavaScript bindings ) As there are no documents available i am reading the sources of gnome-shell JavaScript's . In my app i need to get access to global.userdatadir . I am trying to add the Shell object to…
Alexander
  • 12,424
  • 5
  • 59
  • 76
11
votes
2 answers

Display notifications in Gnome Shell

How can i send notifications in GNOME through a python program? I have tried python bindings like pynotify,python-notify2, but the all give pop-up notifications which are temporary. Is there any python bindings to give notifications on the message…
rohitnambisan99
  • 121
  • 2
  • 6
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
1
2 3
17 18