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. Working with windows

How do I switch windows programmaticly? I mean like Alt+Tab does but without any labels or something. I tried to look through the documentation but it's too complicated for me ( you can say then not to do it, but I learned action script with help of…
While True
  • 423
  • 2
  • 15
1
vote
1 answer

Getting list of contacts with Gnome-Shell JS interface

I've just started fiddling with writing gnome-shell extensions, and would like to know how to get a list of contacts a user has. I've tracked down some likely files: gnome-shell/js/ui/contactDisplay.js and gnome-shell/src/shell_contact_system.c. Now…
mathematical.coffee
  • 55,977
  • 11
  • 154
  • 194
0
votes
0 answers

Gnome 3 Classic Icon Placement

I'm running Gnome 3 Classic desktop on Rocky 8. There is no longer a context-menu option to clean up the desktop. Is this option accessible, or if not is there a way to access the current icon locations and change them, preferably via scripting.
SixDegrees
  • 781
  • 1
  • 8
  • 19
0
votes
1 answer

How to extract values from a dbus signal and write it to a file?

I was looking for signals using: dbus-monitor --session > gnome-extension-log.txt I have a signal like: signal time=1684395360.751890 sender=:1.93 -> destination=(null destination) serial=971 path=/org/gtk/gio/DesktopAppInfo;…
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
0
votes
0 answers

How do I draw a window on screen using GJS in a gnome extension

I'm trying to create a GNOME Shell extension and draw a window on the screen using GJS. I have referred to the gjs guide, the official API documentation, and the gnome shell js source code. However, I don't understand how to draw a window because…
0
votes
0 answers

GNOME JavaScript bindings and IntelliJ IDEA Ultimate

I want to build a GNOME extensions. How do I integrate GNOME JavaScript (GJS) into my IDE (IntelliJ IDEA Ultimate)? Currently, I create a new extension like described in the official developer guide: gnome-extensions create --interactive Opening…
0
votes
0 answers

Problem while launching simple Gnome extension on Ubuntu

When i launch the extension.js demo file that is provided by Gnome at https://gjs.guide/extensions/development/creating.html#a-working-extension I get this error : const St = imports.gi.St; ReferenceError: imports is not defined here is the code…
0
votes
1 answer

Creating a new window in a GNOME extension

tl;dr How do I create an empty window in a GNOME extension? Context I'm working on an extension that will manage several windows within one. One of the first things I'm trying to achieve is to create a new empty window. What I've Tried I've found an…
Tom Klino
  • 2,358
  • 5
  • 35
  • 60
0
votes
0 answers

Gnome extension to update system

I am trying to add a button into my Extension that, when clicked runs sudo apt update and sudo apt upgrade but it keeps crashing/not doing anything. I have tried: Util.spawnCommandLine('gnome-terminal -- sudo apt update && sudo apt…
0
votes
0 answers

How can I make a gnome shell extension that makes a little web browser window popup under the menubar icon?

I created the appropriate folders for gnome extensions to load the extension. It is visible in Gnome Extensions. Here is the extension.js file which is the main file. const St = imports.gi.St; const Main = imports.ui.main; const Soup =…
0
votes
0 answers

Can an extension dynamically change Gnome Shell Styles?

I'm working on a simple extension to color the Top Panel using a color specified in a local config file. I know that you can override Gnome Shell Styles by adding rules to stylesheet.css, however this seems to be for rules that are statically known…
bmspates
  • 11
  • 1
  • 4
0
votes
0 answers

Gnome Extension - How to access Evolution Calender events

I need to write a Gnome extension which can browse through the Evolution Calender events. User will select multiple dates in the calender, and by using the extension - a meeting chain will be created using a same universal ID. I have no prior…
Proteeti Prova
  • 1,079
  • 4
  • 25
  • 49
0
votes
0 answers

Dash to Dock does not display unread message badge on Discord in Fedora

I use Fedora 37 and extension Dash to Dock v75. I can't get it to display unread message badge from Discord. At the same time, it works great with Telegram. Does anyone else have a similar problem? Can it be solved? enter image description here I…
0
votes
1 answer

Gnome shell extension: not getting all properties from dbus

On my laptop: gdbus introspect --system --dest org.freedesktop.UPower --object-path /org/freedesktop/UPower/devices/DisplayDevice returns a set of properties: properties: readonly s NativePath = ''; readonly s Vendor = ''; …
Tim Richardson
  • 6,608
  • 6
  • 44
  • 71
0
votes
1 answer

pangocairo text in middle of the circle

I am writing an extension / widgets for gnome-shell.So I want to show some information using text. Actually I want to put text in middle of the circle using pangoCairo but I can't figure out how can I put text using pangoCairo? here is my code of…