Giter Site home page Giter Site logo

gnome-extensions's Introduction

Important

This extension is no longer maintained, but I plan on making most of these into separate extentions sometime in the future.

GNOME extensions

Battery Bar, Dash Board, DateMenu Mod, Media Player, Power Menu, Workspace Indicator, Notification Indicator, Modified Quick Settings, Background Clock.

Like this Extension?

You can support my work on ko-fi.

Also consider donating to GNOME

gnome-extensions's People

Contributors

aylur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-extensions's Issues

Missing Avatar image from Dash

Hello,
I'm using Arch Linux with GNOME 43, and you know, your GNOME extension is wonderful.

What I noted is that, when I open the dash, it is not taking the avatar of my user account:

image

My avatar is located in $HOME/.face. How can I solve it? Is it a permission issue?

Error after the new update

Getting this error when opened in extension manager:

The settings of extension widgets@aylur had an error:

TypeError: Adw.EntryRow is not a constructor

Stack trace:

_init@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:432:23
SubPage@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:352:1
DashBoardPage@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:420:1
_init@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:758:33
MainPage@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:746:1
fillPreferencesWindow@/home/rimuru/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:772:16
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:27:29
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:129:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

VPN indicator

How can I do to include in the widget the possibility of choosing a vpn as it does with Wi-Fi networks?

IMPROVEMENT: Move app volume slider to media player

Currently, the volume slider is shown next to the standard system volume slider making it messy the settings messy and unclear. It would be way more clear which app the volume slider belongs to if it was integrated into the appropriate volume slider.

Current Implementation
image

Suggested Implementation
Screenshot from 2023-03-12 11-58-37

Missing dependency

The settings of extension widgets@aylur had an error:

Error: Requiring Adw, version none: Typelib file for namespace 'Adw' (any version) not found

Stack trace:

@/home/eaebnns/.local/share/gnome-shell/extensions/widgets@aylur/prefs.js:3:36
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

OS: Ubuntu 20.04.5 LTS x86_64
Gnome version: 3.36.8

Shutdown Dialog window behind the extension

Hello,
nice extension. It could have very good potential.

Currently there is some bug: when the user clicks on shutdown icon, or restart or other ones, the dialog window appears behind the extension window, so it is unclickable.

Quick Settings Tweak crashing

Hello, I have been getting crashes when setting the Style anything other than Stock and Separated.
Normal and Compact will make the gnome shell crash. I am running gnome 43.2 on Arch

System Levels not working

The system levels are always at zero: CPU, RAM, Temperature

Found this in gnome-shell log:

JS WARNING: [resource:///org/gnome/gjs/modules/core/overrides/Gio.js 422]: Too many arguments to method Gio.File.read: expected 1, got 2
JS ERROR: TypeError: Object 0x398676407fb0 is not a subclass of GObject_Object, it's a Promise
setUsage@/home/abhishek/.local/share/gnome-shell/extensions/widgets@aylur/shared/systemLevels.js:248:37
updateLevel@/home/abhishek/.local/share/gnome-shell/extensions/widgets@aylur/shared/systemLevels.js:112:14
updateLevels/<@/home/abhishek/.local/share/gnome-shell/extensions/widgets@aylur/shared/systemLevels.js:497:15
updateLevels@/home/abhishek/.local/share/gnome-shell/extensions/widgets@aylur/shared/systemLevels.js:496:21
Caused by: Error: This JS object wrapper isn't wrapping a GObject. If this is a custom subclass, are you sure you chained up to the parent _init properly?

Running on:
GNOME Shell 42.3.1
Fedora 36

Not working if installed at system-level (instead of user level)

When this extension is installed at system level for all users, the "Settings" button does not work and returns the following error message:
image

It occurs because in files pref/pages.js and shared/media.js, the MEDIA_CACHE variable only refers to the current user by:

pages.js

const MEDIA_CACHE = GLib.get_user_cache_dir()+'/aylur/media';

media.js

const CACHE_PATH = GLib.get_user_cache_dir()+'/aylur';
const MEDIA_CACHE = CACHE_PATH+'/media/';

So, if the extension is installed at system-level (so for all users in the system), the GLib.get_user_cache_dir() is not a good choice because it will return the current user cache directory.

When the extension is installed at system level, the media path should be stored to /usr/share/gnome-shell/extensions/widgets@aylur/media.

Could you please add an if statement for defining CACHE_PATH and MEDIA_CACHE in order to manage also system-level installation of this extension?

Add options to position dashboard Icons

Hi ,

First of all, great extension love it. However I can't find an option to move the icon to the left or right and stays in the center for me all the time.

Ribu

Temperature reading from /sys/class/thermal/thermal_zone0/temp

Hi there,

thanks for the great extension and sharing it, and sorry for adding issues.

You set the temperature from /sys/class/thermal/thermal_zone0/temp but that's not the same for all systems, and also even on the same system, it changes between boots.

You may want to consider and alternative method to collect thermal info, or a more complex one to identify which zone actually reports the temperature.

In any event, thanks again, and please don't feel you have to do this on my account. Keep up the good work.

Colorful link-icons in dashboard

Currently, all the link-icons(gmail, github etc.) are turned white on my device, even if i add a custom colorful one. Is there a way to change some code or maybe add a setting so that we can have colorful icons in the dashboard?
Thanks!

this.dateMenu.get_parent() is null

Hi, first thank you so much for the great extension.

With recent update, I get this error: this.dateMenu.get_parent() is null.

Although I do have default topbar clock, I can't understand why it isn't able to grab the parent. Checked out the code dateMenuMod.js.. probably it isn't properly reset when disabled/reloaded on boot?

Any help would be appreciated, thanks!

Feature : Add tooltips on hover for the dash

The most simple example would be the power buttons but more important would be the usage options
image
some icons are not clear to what they represent, so a hover tooltip would help to understand more the UI

The power buttons (powerMenu.js) still in white

Hi,

you modified powermenu.js last month but the buttons are still in white. Here is the parts for it:

layout2x2(){
let vbox = new St.BoxLayout({ style: this.spacing, vertical: true });
let hbox1 = new St.BoxLayout({ style: this.spacing });
let hbox2 = new St.BoxLayout({ style: this.spacing });
hbox1.add_child(new PowerButton('system-reboot-symbolic', _('Restart'), 'restart', this));
hbox1.add_child(new PowerButton('system-shutdown-symbolic', _('Shutdown'), 'power-off', this));
hbox2.add_child(new PowerButton('weather-clear-night-symbolic', _('Suspend'), 'suspend', this));
hbox2.add_child(new PowerButton('system-log-out-symbolic', _('Log Out'), 'logout', this));

vbox.add_child(hbox1);
vbox.add_child(hbox2);
this.contentLayout.add_child(vbox);
}

layout1x4(){
let hbox = new St.BoxLayout({ style: this.spacing });
hbox.add_child(new PowerButton('weather-clear-night-symbolic', _('Suspend'), 'suspend', this));
hbox.add_child(new PowerButton('system-log-out-symbolic', _('Log Out'), 'logout', this));
hbox.add_child(new PowerButton('system-reboot-symbolic', _('Restart'), 'restart', this));
hbox.add_child(new PowerButton('system-shutdown-symbolic', _('Shutdown'), 'power-off', this));

this.contentLayout.add_child(hbox);
}

As you can see, it use symbolic files (white icons). I would like to see color icons instead. So, can you allow the user to change the icon (symbolic or color icon) for the powerbuttons through an option in the powermenu ?

Thanks.

Regards.

Icon for dash

I cannot select icon for dash menu. im using gnome with nemo (choosing select does nothing)

Can't disable background clock

Hello.
Thanks for the great extension, but I have a small problem: I can't disable the background clock. Can you put this feature in the next version?

Suggestion for making Aylur Widgets Avatar working dynamically when user changes Avatar by GNOME settings

Aylur's Widgets Dashboard, currently, for getting the Avatar image of the user, it goes to find it in the following path:

/var/lib/AccountsService/icons/<username>

where <username> is an image file.

In GNOME >=40, the folder above is empty and, for getting the Avatar working correctly, a user can create a symbolic link of the image to that path, for example by:

sudo ln -sf $HOME/.face /var/lib/AccountsService/icons/<username>

or can copy directly the avatar image there.

Currently, the Aylur Widgets does not manage the case where a GNOME user goes to Settings -> Users -> and change the avatar with a GNOME default avatar (for example "bicycle" stored on the default avatar GNOME image path in /usr/share/pixmaps/faces/), so, in this case, Aylur's Widgets still keep the old avatar instead of new one.

In GNOME >=40, the Avatar path is specified in /var/lib/AccountsService/users/<username> inside the Icon variable, for example:

[User]
Session=
XSession=gnome-xorg
Icon=/usr/share/pixmaps/faces/bicycle.jpg
SystemAccount=false

and Icon variable value changes according to the avatar user choice in GNOME settings, so it changes dynamically.

For making also Aylur's Widgets dashboard changing dynamically the user avatar, a good approach could be to change the following codes:

extensions/dateMenuTweaks.js

style: 'background-image: url("/var/lib/AccountsService/icons/'+ GLib.get_user_name() +'"); background-size: cover;',

extensions/quickSettingsTweaks.js

background-image: url("/var/lib/AccountsService/icons/${GLib.get_user_name()}");

shared/dashWidgets.js

background-image: url("/var/lib/AccountsService/icons/${GLib.get_user_name()}");

to call NOT /var/lib/AccountsService/icons/${GLib.get_user_name()} but extracting the Icon variable value from /var/lib/AccountsService/users/${GLib.get_user_name()} and using that string value on background-image: url.

In this manner, Aylur's Widgets dashboard avatar will change dynamically with the avatars selected by the user on GNOME Settings -> Users section.

Feature request: Add padding for battery bar

Hello!

I think it'd be really nice to have a padding option for the battery bar. Right now it goes all the way to the end of the indicator space, giving it a bit of a weird look when compared to the other things in the panel, especially since the icon seems to have some padding by default.

image

Track widget in wrong offset

Everytime that I reboot my PC the Music Track widget goes to a wrong offset, returning to normal when I edit it.

image
image
image

Version Pakage dor Arch Linux

Hello, is there any pkgbuild for arch linux? I'm looking and I didn't find it, I just don't want to have to redo something that already exists and that's why I'm asking.

Option to hide the media player and the notifications from the calendar menu

Please add an option to hide the media player and the notifications from this menu. I already have the notification counter enabled and the media player in the top bar. If anything, it would be more useful to have Today's calendar events, the Weather and World clock there instead.

Screenshot from 2023-01-04 16-59-29

I tried using Quick Settings Tweaker, but both extensions overlap...

.

Dash Features

Could the dash be made customisable? For instance, there are only 5 preset links. I would like for these links to be customisable. Really great extension by the way, I love it!

Something went wrong

The settings of extension widgets@aylur had an error:

TypeError: Adw.EntryRow is not a constructor

Stack trace:

Volume adjusting doesnt work

OS: Ubuntu 22.04
Gnome: 42.5
Windowing system: X11

The volume in the dashboard always appears to be at 100%, and I am unable to adjust it.
Attempting to adjust it causes unexpected behavior like the spot spotify client crashing.

Date Format with custom uppercase & spaces

Hello, I'm trying to use the font Anurati for the date format (%A) in background clock and I don't know how to make it all in uppercase. I also need each letter to have a space from each other.

As you can see, just placing %A doesn't showcase the full design of uppercase fonts like Anurati. I guess GNOME just provides the default lowercase fonts for custom fonts that don't have any?
image

Ideally, I would love to see it like this with a space in between each letter.
image

If there are no spaces, the Anurati font would look like this.
image

I would really like an option in the extension for these specific use cases. If there are workarounds in the meantime, I'd like to know about it.

Translations missing in example.pot

Hello,

I translated the whole example.pot file in French. But some parts are still in English when I use your extension translated in French.

BackgroundClock: Left, Center, Right, Hide.
batterBar: Left, Center, Right.
DashBoard: Left, Center, Right.
mediaPlayer: Left, Center, Right.
PowerMenu: Left, Center, Right.
workspaceindicator: Left, Center, Right.

Otherwise, all others items and strings are translated in French.

Can you check it ? Is it a bug ?

Thanks.

Add translation support (locales)

Hello,

can you add translation support, so we can translate your extension in other languages (locales) then English ?
We need .pot file to make .po files.

Thanks.

Shutdown button to show a dropdown menu

Thank you for the extension!!

Is it possible if you add a dropdown menu in Quick Settings (compact style) for shutdown button?
Like in stock style, I expected the power-off button to show me a list to choose from (suspend, lock etc.) but instead it went ahead and shut down immediately. I don't know if it's a bug or a feature.

resim

Items on quick settings do not fit

This normally happens when:

  • The list is too long
  • The screen resolution is too low not allowing for enough space
  • The option is at the bottom

I understand this is a problem with Gnome but it would be nice to temporarily remedy this issue until Gnome fixes it whenever that is..

image

Battery Bar position with extension Top Bar Organizer

If I use the Top Bar Organizer together with the Battery Bar, then my position in the Battery Bar is shifted to 0 and there is no separate element in the Top Bar Organizer extension to move the Battery Bar

Using:
Fedora 38 - Gnome 44 Wayland
Aylur's Widgets - 24
Top Bar Organizer - 9

Screenshots:
image
image

Desktop Clock doesn't update correctly

About

The clock on the Desktop ticks up as intended but there is a shadow in the background of the very first time displayed.
When disabling and enabling the clock, the background digit disappears but reappears after the first tick.

Here is a screenshot of the bug.

System info

Ubuntu 22.04.1 LTS
GNOME-Shell: 42.5
Widgets Version: 13

Edit: widgets version

Preferences can't be opened if the extension is installed on read-only file systems

Hello,

Clicking on the setting's button of the extension, the following error is thrown, since I installed the extension on a read-only file system.

This exception could be prevented by changing the mpris cache to /tmp or the user's XDG_CACHE instead of the extension's location on the file system.

(If you are wondering why the extension is on a read-only file system, this is because my packet manager, nix, place everything on a global read-only file system).

Gio.IOErrorEnum: Error creating directory /etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/media/mpris-cache: Read-only file system

Stack trace:
  _cacheSize@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/pref/pages.js:364:17
  _init@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/pref/pages.js:345:14
  SubPage@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/pref/pages.js:17:1
  MediaPlayerPage@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/pref/pages.js:316:1
  _init@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/prefs.js:120:33
  MainPage@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/prefs.js:102:1
  fillPreferencesWindow@/etc/profiles/per-user/zoriya/share/gnome-shell/extensions/widgets@aylur/prefs.js:129:16
  _init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:27:29
  ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
  OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:124:33
  async*_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
  _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  start@resource:///org/gnome/gjs/modules/script/package.js:190:8
  @/nix/store/yr176vsj2glj4ll0ap10d0fkwb7lcp7a-gnome-shell-44.1/share/gnome-shell/.org.gnome.Shell.Extensions-wrapped:7:17

If you want, I can open a PR to fix this, running a quick search holds only 3 lines to update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.