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

Gnome Shell Extension: Resize and position a window on creation

I am trying to write a Gnome Shell extension that resizes and positions a window when it is created. I am using the move_resize_frame method provided by the Meta.Window object to set the window's size and position, and I've also tried move and…
jqno
  • 15,133
  • 7
  • 57
  • 84
1
vote
0 answers

Unable to enable Gnome system wide extension for QT Application (version GNOME Shell 40.10)

I am using a QT application which also shows an icon over panel but with latest gnome update the icon does not appear anymore. To show the notification icon, i’m trying to install and enable the extension : appindicatorsupport@rgcjonas.gmail.com I’m…
1
vote
0 answers

Disable Keyboard - JavaScript Gnome extension

Im working on a very simple GNOME extension with a click event that disables the keyboard (if you need to clean it or clean your desk). Is there a way to disable all the keyboard output in JavaScript? I've tried to do _onClicked(actor, event) { …
c.silva
  • 11
  • 2
1
vote
1 answer

How to change the minimize, maximize, and close background colors button using gtk.css file?

I have been modifying the gtk.css file and managed to change the look of mi windows. For the most part i have been able to figure what certain components i must modify to change the look of certain things. however I have not been able to find a way…
1
vote
1 answer

How to use a main loop in a Gnome Extension?

I want to display the content of a file in the Gnome top bar and update the display when the content of the file changes. For now I have just a skeleton extension that writes Hello world in the top bar. I have tried to make a loop that should update…
pietrodito
  • 1,783
  • 15
  • 24
1
vote
0 answers

How to move entire PopupSubMenuMenuItem higher on aggregate menu

I'm curently working on some extension to the gnome-shell. I added a new Popup menu into aggregate menu in status area, but can't move it to the desired position. Tried menu.moveMenuItem(item, position), but it moves only the "main" item, not the…
1
vote
0 answers

Interact with OAuth secured api from gnome shell extension

I would like to show a bunch of my google calendar tasks on my desktop using a gnome shell extension. I just went over how the quickstart that explains how to use the api normally over at https://developers.google.com/calendar/api/quickstart/python.…
Vancha
  • 63
  • 1
  • 8
1
vote
2 answers

How do I use websockets with gjs(Gnome JavaScript)?

I am trying to create a simple application in GJS that sends desktop notifications based on json received via WebSocket. What is the easiest way to use WebSocket in GJS? Thanks in advance.
nexryai
  • 33
  • 1
  • 3
1
vote
1 answer

How to add a slider to a gnome shell extension?

I am trying to add a slider to my extension's indicator, like they do in the sound chooser for example: I tried this code: class Indicator extends PanelMenu.Button { _init() { super._init(0.0, _('My Shiny Indicator')); …
Piero dS
  • 45
  • 8
1
vote
1 answer

How to get key press work in St.Entry of gjs

I want to press the 'Enter' key to call a function; I test many codes in key-press-event part, but no one work. I also don't know which key_symbol is the right one between those Clutter.KEY_Escape KEY_ISO_Enter KEY_KP_Enter KEY_3270_Enter. other…
eexpress
  • 386
  • 1
  • 14
1
vote
1 answer

Determining the number of lines in a notification, depending on width and height

So I am yet again facing another problem concerning my extension. I would like to calculate the number of lines in a notification, based on its width and height. For context, I am designing an extension that adds a button to the notification in the…
kaanginam
  • 17
  • 4
1
vote
1 answer

run sudo commands from gnome-extentions

I want to run a sudo command that prompts a GUI for the user to enter their password and get the password back for future use. running this in a gnome-extention GLib.spawn_command_line_sync('sudo echo e') I get the following error sudo: a terminal…
karim samir
  • 99
  • 1
  • 5
1
vote
2 answers

Gnome Shell Extension: Send Request with Authorization Bearer Headers

I am trying to build a gnome shell extension (using gjs) that I need to communicate with an external REST API. In order to do so, I need to accompany my requests with the header: Authorization: Bearer and with a Content-Type:…
geoph9
  • 357
  • 3
  • 18
1
vote
1 answer

Will updating a gnome shell extension delete custom css in a separate file made by the user?

I would like to give the users of my extension the possibility to add custom css in a file called custom.css. This file is then imported in stylesheet.css: @import url("custom.css"); The question is: If I release a new version of the extension and…
raujonas
  • 117
  • 8
1
vote
1 answer

How to over write a function for gnome-shell which has only _init() {}

from this link https://wiki.gnome.org/Projects/GnomeShell/Extensions/StepByStepTutorial if we search for inject, we notice "prototype" But I am looking to extend/ overwrite this part, I cant user prototype in this case which is mentioned in above…
PRATAP
  • 127
  • 3
  • 17