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

Gnome shell extension login callback

I've created a custom GJS extension to connect into VPN. Basically it's a wrapper around a shell script, which is controlled from taskbar. There is a one issue, that after PC goes into suspend mode and back, extension is still displaying, that is…
Andy
  • 74
  • 9
0
votes
1 answer

How do I end spawned shell script in?

I am writing my first gnome shell extension to update desktop background to Microsoft Daily Wallpaper by making and running a shell script Here's the shell script, it loops every 15 minutes while : do result=$(curl -s -X GET --header "Accept: */*"…
Anuja Nimesh
  • 408
  • 3
  • 13
0
votes
1 answer

Displaying a Classification Banner at the top of each computer monitor in Gnome Desktop

I work in an environment where we have to have a security classification banner displayed at the top of each monitor on our Gnome Desktops. Currently, I am using a Perl/Tk window to display the classification of the system. However, that window…
WVEagle81
  • 89
  • 4
0
votes
1 answer

Update ScrollView when height of a notification in the notification tray changes

So in regards to my last question, I am currently struggling with expanded notifications clogging up the notification tray. The problem is, that the vertical ScrollBar of the notification tray does not show up when it needs to when e.g. too many…
kaanginam
  • 17
  • 4
0
votes
1 answer

Showing more than one line of the notification description in the notification tray using an extension

I am currently designing an extension to make the notifications in the notification section of the calendar expendable. The goal is to make the noficiation expand like the initial notification on the desktop does. I have changed the type of…
kaanginam
  • 17
  • 4
0
votes
2 answers

gjs/gnome-shell-extension: Updating button text every 60 seconds

I want to write a simple gnome extension that prints some text on my top bar from a text file. I managed to print the text but i'm having trouble with updating it every 60 seconds. Is it even possible with gjs? this is what i came up with: const…
karol
  • 1
0
votes
1 answer

RHEL 8.3: Toggle Top Icons Plus Gnome extension in Tweak Tool with script

Is there a way to toggle the Gnome Extension Top Icons Plus in Tweak Tool in a script? Currently I am unable to find any APIs provided by Tweak Tool or Top Icons Plus.
anshah
  • 105
  • 9
0
votes
0 answers

How do I create a Mainloop that calls an api in a Gnome application

So I am trying to call a google API in a GNOME extension and am wondering why if I try to enable my extension it crashes Manjaro Linux. If I am doing something fundamentally wrong please inform me as I am quite new to this even though I have been…
smal
  • 177
  • 10
0
votes
1 answer

Gnome Shell Stylesheet

So I'm making a gnome shell extension, and I can't figure out how to make one part of my extension normal font weight. Here is my extension.js file: 'use strict'; const { St, Clutter } = imports.gi; const Main = imports.ui.main; let…
0
votes
2 answers

Using gio.lookup_by_address

Most of the code is borrowed, JS is not my way, but an extension needs to be created. Can you tell me how to use g_resolver_lookup_by_name() to return IP within the given code? g-resolver-lookup-by-name const Main = imports.ui.main; const St =…
Violet
  • 99
  • 1
  • 5
0
votes
1 answer

How to handle microphone sound level update event in gnome extensions?

I have certain global shortcuts to update the microphone sound input level. Therefore, I was creating a gnome extension that adds a label in the top bar, displaying the current microphone sound percentage. The code in extension.js is something like…
Ashish Kumar
  • 129
  • 3
  • 8
0
votes
0 answers

Get Dash instance when creating GNOME Shell Extension

I'm creating my own extension for GNOME Shell and I run into problem while searching for some documentation of Dash. I need to find width, height, visibility and position of Dash. But I have been unsuccesful to find some doc at…
Payne
  • 456
  • 6
  • 21
0
votes
2 answers

How to access environement variable inside a Gnome-Shell extension

I want to access environment variable from a Gnome-Shell extension. Some context: I want to create an extension adding "Xorg" or "Wayland" to the panel, based upon the environment variable $XDG_SESSION_TYPE. I have to do this because I frequently…
cronvel
  • 4,045
  • 2
  • 14
  • 19
0
votes
1 answer

Convert String to UTF-16 Byte Array in GJS

In my Gnome Extension I would like to call GLib.convert. Sadly it does not work with strings but wants a ByteArray. Now I wonder how to convert a Javascript String into a UTF-16 Byte Array. Bonus points if this uses some part of the Gnome bindings…
abergmeier
  • 13,224
  • 13
  • 64
  • 120
0
votes
1 answer

How to get OS name while writing gnome-extensions

How to get OS name while writing gnome-extensions.. for example: GLib.get_real_name() I have gone through this post How can my GNOME Shell extension detect the GNOME version?
PRATAP
  • 127
  • 3
  • 17