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

How to change the state of a PopupSwitchMenuItem in gnome extension

I am working with a gnome extension which has a toggle switch on its panel popup menu. I have bound a keyboard shortcut to the same setting, so I want to change the state of the toggle to reflect what happens with the keyboard shortcut. the toggle…
Tim Richardson
  • 6,608
  • 6
  • 44
  • 71
0
votes
1 answer

UI freezes for a short moment while trying to execute multiple commands in a gnome shell extension

Original question: Multiple arguments in Gio.Subprocess So currently I'm trying to execute multiple asynchronous commands in my gnome-shell-extension via Gio.Subprocess. This works fine, if I put all commands as only one chained command with && in…
raujonas
  • 117
  • 8
0
votes
2 answers

"gnome-shell-extensions" Not able to upload the complete directory

First of all, I am sorry If this is not the rite place to ask. Recently, I tried to upload the extension https://extensions.gnome.org/extension/2935/control-blur-effect-on-lock-screen/ to the extensions.gnome.org website. this link says to make zip…
PRATAP
  • 127
  • 3
  • 17
0
votes
1 answer

Connect to swipe signal in GNOME St

Trying to connect a StButton to a swipe signal, I get an error: JS ERROR: Extension screensaver-dashboard@singularities.org: Error: No signal 'swipe' on object 'StButton However, I can see the signal among Clutter Actions…
Antonio Tapiador
  • 4,326
  • 1
  • 15
  • 8
0
votes
2 answers

How to update widget when new style is applied

I'm making an extension with a list containing a checkbox with a text item (St.label) that change style when toggled. I'm listening to the toggle event, and as the item is toggled, I set a new style for my text using set_style_class_name() on a my…
mhlsf
  • 303
  • 4
  • 14
0
votes
1 answer

Fetch a json file from server in gnome extension

I am writing a gnome shell extension in java script. I tried using asynchronous fetch() but it didn't work. How can I fetch data from a server in JSON format and display it on my status bar? const http = new XMLHttpRequest() let data,button; …
0
votes
1 answer

gnome software application manager : disable automatic request for extensions list

does anyone know if there's a way to disable the automatic request 'feature' in the ubuntu 19.10 software application manager that requests a json list of available extensions from extensions.gnome.org every time the application is brought to the…
david furst
  • 329
  • 4
  • 17
0
votes
1 answer

How to unfullscreen a window without notifying it?

I'm trying to enhance the gTile extension by allowing it to resize a fullscreen window to a tiled area of the screen. That's a pretty common thing to do when tiling and it's pretty handy since some windows will hide some chrome when in fullscreen…
Different55
  • 577
  • 2
  • 17
0
votes
1 answer

Util.spawnCommandLine does not work on GNOME Shell extension

I'm writing an extension for GNOME Shell to check whether VPN is connected with this command: ifconfig -a | grep tun This is my extension.js file: const St = imports.gi.St; const Main = imports.ui.main; const Mainloop = imports.mainloop; let…
ICE
  • 1,667
  • 2
  • 21
  • 43
0
votes
1 answer

Parse XML in GJS?

How can I parse XML in GJS code? Specifically, in a gnome shell extension? I haven't found anything, and there doesn't seem to be a GJS XML library. Also, GJS doesn't appear to be compatible with nodejs, so I can't use xml-js or the like? Am I…
user355252
0
votes
1 answer

set presets with gTile gnome shell extension

I'm trying out a 43Inch screen and I'm using the gnome shell extension gTile, and I can't figure out how to: have a preset to bring all windows to center with predfined dimensions, i.e. 70%x50% have a hotkey to bring the current window to center…
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
0
votes
1 answer

How to get user profile image in javascript in gnome 3.28 Ubuntu 18.04

I am working on an extension for gnome, in which there is a popupmenu with menuitems.One of the menuitems is called "Log out" .I have managed to display next to "Log out" the real name of the user with this code: let username =…
0
votes
1 answer

Ubuntu16.04 Gnome cannot save setting

I got a problem after an system upgrade.I chosen some config yes. And here,I lost my desktop icon.I cannot change system settings such as key map shutcut.I cannot neither change themes nor enable extensions with gnome-tweak-tool. I've tried…
Leo
  • 13
  • 4
0
votes
1 answer

Activate method when mouse enters specific pixel range on screen in GNOME

I'm trying to make a GNOME extension that functions similarly to a dock, except it shows you status info (time, battery, etc). What I'm stuck on here is, how do I get the info to show up when the cursor enters a specific pixel area? Like, if the…
0
votes
0 answers

Can not remove extension on Ubuntu 16.04

Just as the following image, can not remove extension Topicon, After I remove the folder in the gnome extension directory, it still show error. ➜ extensions pwd /home/honhe/.local/share/gnome-shell/extensions ➜ extensions ll total 32K drwxrwxr-x…
Honghe.Wu
  • 5,899
  • 6
  • 36
  • 47