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
0 answers

Gnome Extension - Disable keyboard input

I'm trying to make my first ever extension for GNOME, and after watching a video with a guy having the ability to turn off his keyboard i wanted to try make an extension that did just that. By now i have made it so that the extension shows a toggle…
fLcky98
  • 13
  • 4
0
votes
2 answers

How to list files from directory with wildcard in a Gnome Shell Extension?

I have managed to read the content of a file from the disk with this snippet: const { Gio } = imports.gi; class Indicator extends PanelMenu.Button { …
pietrodito
  • 1,783
  • 15
  • 24
0
votes
1 answer

How does gnome-browser-extension and chrome-gnome-shell load extension without reloading gnome session

gnome-extensions man page says: The command unpacks the extension files and moves them to the expected location in the user’s $HOME, so that it will be loaded in the next session. so to install netspeed extension via script, we have to do…
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
0
votes
1 answer

Is it possibe to write Gnome extensions in Dart and compile it to JS?

In theory it looks like it should be possible. There is: Dart-to-JavaScript compiler and even package to call JS from Dart and opposite. But I didn't find any resources about it. Did anybody tried? Does anybody knows for sure that it is not…
DamirR
  • 1,696
  • 1
  • 14
  • 15
0
votes
1 answer

Can I use other languages(other than JavaScript) to create Gnome Shell Extensions?

I am creating a GNOME Shell Extension and want to use languages like C++/Golang rather than JavaScript to create it. It is also acceptable if I can somehow call/use the C++/go executable in my extension.js. Please tell me if this is even possible…
Avinal
  • 184
  • 4
  • 11
0
votes
0 answers

bash create another shell interface

in a bash script, inserting an & will create a child process in which to run the command. Is it possible to run a gnome-shell, or other windowed interface, in which to run a command?
Nyttja
  • 11
  • 2
0
votes
1 answer

How to Print Text to DrawingArea in Gnome-Shell-Extension

I'm doing my first gnome-shell extension (gnome shell 41.3) and I seem to encounter the most common problems, finding the right manual for that... What I try to achive is... A Widget shown (above everything) on the desktop... Draw something into…
Zappo-II
  • 21
  • 5
0
votes
2 answers

Can I get a hover and checked effect with St.Button in GJS?

I have a group button with icon. If I can setup a hover effect, for I saw here is some func or attribute like St.Widget.track-hover St.Widget.sync_hover St.Widget.set_hover, maybe minor changes may be made for buttons using css. But those function…
eexpress
  • 386
  • 1
  • 14
0
votes
1 answer

Can I set_markup to a PopupMenuItem?

Since a Label in a PopupMenuItem, I thinks it can be set a pango text here. PopupMenuItem: A PopupBaseMenuItem that displays text in a St.Label. const item = new PopupMenu.PopupMenuItem(""); item.actor.set_size(300,150); <---…
eexpress
  • 386
  • 1
  • 14
0
votes
0 answers

Can I use ajax in gjs or any alternatives method?

[gnome-sehll-extension] I need read other web pages and parse the obtained JSON files. The office example is: $.ajax({ url: 'http://api.xxx/yyyy', type: 'get', dataType: 'jsonp', data: { q: query, appid: appid, …
eexpress
  • 386
  • 1
  • 14
0
votes
1 answer

Want add variables to PopupMenu class and save object in array in gjs

I want store two variable with PopupMenu.PopupImageMenuItem object, and push them into an array, then want change the text of those popupmenuitems later every 10 seconds. var list = new Array(); function add_timer (){ …
eexpress
  • 386
  • 1
  • 14
0
votes
1 answer

cairo in gnome extension, nothing show

I write simple test cairo code, mainly from office example code. but nothing show in the menu area. It hard to describe, so put screenshot here. please help.
eexpress
  • 386
  • 1
  • 14
0
votes
1 answer

How to analyze image in gjs/gnome-extensions?

How I can get pixel of image in gjs/gnome-extensions? I tried Image() but it undefined in system.
Renattele Renattele
  • 1,626
  • 2
  • 15
  • 32
0
votes
1 answer

How to change the color of _selected_ text in a `St.Entry` in a Cinnamon Applet (Gnome)?

I use a St.Entry widget in an Cinnamon applet and set the text color via CSS to black. By chance the selection color of this widget it also black - at least in the theme I use: This way, selected text is unreadable. :-( How can I change the…
Peter T.
  • 2,927
  • 5
  • 33
  • 40
0
votes
1 answer

How to get a `St.BoxLayout` to 100% width in a Cinnamon applet (CJS / GJS)?

I am writing my first Cinnamon applet (after I managed to write a desklet). I have a St.BoxLayout embedded in a PopupMenu.PopupBaseMenuItem in order to get in in a popup menu. Now I want it's width to be 100% of the popup menu width, but it (i.e.…
Peter T.
  • 2,927
  • 5
  • 33
  • 40