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…
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…
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) {
…
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…
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…
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…
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.…
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.
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'));
…
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…
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…
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…
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:…
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…
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…