GithubHelp home page GithubHelp logo

nls1729 / acme-code Goto Github PK

View Code? Open in Web Editor NEW
65.0 7.0 25.0 730 KB

Gnome Shell Extensions etc...

Home Page: https://nls1729.github.io

License: GNU General Public License v2.0

Makefile 5.06% JavaScript 94.62% CSS 0.32%
ego javascript gnome gnome-shell

acme-code's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

acme-code's Issues

Localization support

Usally the translation template file (*.pot) can be created automatically using the following command:
xgettext -k_ -kN_ -o nls1729-extensions.pot prefs.js readme.js notify.js
It finds all occurances of Strings of the kind _("TEXT"). It seems that you have changed the source code in a way that this does not work anymore for most of the Strings. Instead you use _N("TEXT") that seems to do nothing. Is there a reason why?

Gobject will not work below version 3.32

i just figured out that

const ReloadExtensionMenu = GObject.registerClass(

will fail for version < 3.32, it looks like something like this would work:

function getAsGObject(classObject) {
    if (ExtensionUtils.versionCheck(['3.32'], Config.PACKAGE_VERSION)) {
        return new GObject.registerClass(classObject)();
    } else {
        return new classObject();
    }
}

The option "Show overview is no applications are running" stops working after the system re-login or system reboot.

Hi! Thank you so very much for your great work!
But the option "Show overview is no applications are running" stops working after the system re-login or system reboot. If I re-enable this option, it starts working fine again, but it again stops working if then I reboot my system. This issue only happens if I use GNOME 3.30, but this has never happened before on GNOME 3.28 and all other previous versions of GNOME. I'm using Arch Linux.

Memory Leaks

It seems that Activities Configurator has some memory leak issues if you let it run for greater than 24 hours.

Activities button on multiple desktops

I upgraded from Ubuntu 16.04 to 18.04 and found this extension useful to have a nice Ubuntu logo instead of the "Activities" letters in the top left corner.
I'm also using the multi monitors add-on extension, so I have the top panel on all monitors, as it was with Unity before.
Unfortunately there the "Activities" still remains and is not replaced by the configured logo.
Is there a way to replace "Activities" on the other monitors with the logo too?

Prevent Window Maximized Effect on Overview / App View

When a window is maximised and I go to the overview or application screen, the top bar is still coloured black as per the "Window Maximized Effect" setting.

Would it be possible to have the top bar revert back to the configured style when those views are open? or for the user to configure an entirely different style for those views?

activities-config breaks on Ubuntu 18.04

Hi there. I just installed Ubuntu 18.04 and decided to give your extension a try.

It gives me the following error (screenshot appended)

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

Stack trace:
  @/home/frenetic/.local/share/gnome-shell/extensions/activities-config@nls1729/colors.js:1:7
  @/home/frenetic/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:15:7
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _extensionFound/<@resource:///org/gnome/shell/extensionPrefs/main.js:206:13
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

image

After lockscreen, panel is transparent

The configuration says the panel is only transparent, if no window is maximized. When I lock the screen and unlock it again, the panel is transparent, but the windows are maximized.

bildschirmfoto von 2018-11-21 18-08-49Sorry, that the screenshot is in German, but you should be able to know, what the settings mean in English (:

[v67 GS 3.28,3.30]
Gnome Shell: 3.30.1

Thanks a lot

donotdisturb-button: Suggestion: make click on icon persistent

Hello and good day,

I'm that gnomemenow guy and want to describe what I mean about the click-behaviour here as you suggested.

The following is the stauts quo:

  • preference "busy" (for me in german it's called "Beschäftigt") is not activated and I can be disturbed (because that's my default)
  • I click the icon to the state "not get distrubed"
  • I lock the screen
  • I unlock the screen
  • extension is now in the state "get disturbed" again

When I lock the screen I haven't changed my mind to "get distrubed" or "not get distrurbed" so I personally would prefer that the state after unlocking the screen should be the same as before I locked the screen.

Edit: added " to perhaps make it a little more clear
Edit2: we also could tilte this issue as "don't lose current state after suspend / screen lock / gnome-shell restart"
Edit3: changed the title to reflect the said extension

Not working on 3.32

Hi,
I wanted to test your last version of Activities configurator but it doesn't work.
When I try to open the settings I get this error :

The settings of extension activities-config@nls1729 had an error:

GLib.FileError: Failed to open file “/home/kerry/.local/share/gnome-shell/extensions/activities-config@nls1729/schemas/gschemas.compiled”: open() failed: No such file or directory

Stack trace:

getSettings@/home/kerry/.local/share/gnome-shell/extensions/activities-config@nls1729/convenience.js:80:24
_init@/home/kerry/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:68:23
buildPrefsWidget@/home/kerry/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:635:18
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:75:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17
main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5
@<main>:1:43

`

Panel is transparent on half tile

Hi again,
if I have to tile windows, it is like one is maximized, but the panel is transparent.
Is it possible to make it not transparent, if a window is in tile mode?

Thanks for your help.
bildschirmfoto von 2018-12-11 12-53-40

No blocked sounds

In Ubuntu 18.04 the extensions blocked notifications but no blocked the sounds of WhatsApp

Need you my help with Russian language translate?

@nls1729 Thank you very much with the GNOME 3.32 rebase! #50
So, I feel I should help you too.
Therefore, I offer you my help in translating the Activities Configurator settings into my native Russian language.
Need you my help?
Screenshot from 2019-03-22 03-04-30

[the SELECT button] [ВЫБОР] Выбор значка
Масштабирование значка
Скрыть значок
Отступ значка
[the APPLY button] [ПРИМЕНИТЬ] Новый текст [Обзор]
Скрыть текст
Отступ текста
Удалить кнопку "Обзор"
Чувствительность горячего угла
Отключить горячий угол
Скрыть закругления углов панели
Скрыть кнопку меню приложений
Игнорировать тему GNOME Shell
Переключаться в "Обзор" если нет запущенных приложений
Задать цвет панели
Прозрачность панели
Цвет тени панели
Прозрачность
Толщина панели
Область размытия
Область распространения
| Панель - Без эффекта
Эффект при развёрнутом на весь экран окне | Непрозрачная панель | Отключить разворачивание окон на весь экран при вдавливании окон в верхний край экрана
| Чёрная непрозрачная панель

Переместить кнопку "Обзор" вправо
Включить предотвращение конфликтов с другими расширениями
[СБРОС] Вернуться к настройкам по умолчанию
[ПРОЧТИ МЕНЯ] Описание этого расширения

Do Not Disturb Button's panel icon is maybe misleading.

The Do Not Disturb Button description specifies that it does not integrate with the "available" status for chat applications in Online Accounts. Moreover, DNDB hides all system notifications, not just chat messages.

GNOME Shell includes an icon that appears in the notification area when there are no notifications or calendar events to display. It's pretty similar, but I think the placement of the stem might better evoke "notification" than "chat message". The SVG version should exist on your system at /usr/share/icons/gnome/scalable/apps/preferences-system-notifications-symbolic.svg.

screenshot from 2017-03-29 11-49-09--cropped

Otherwise, the usual imagery for a generic notifications icon (as opposed to an error or warning message icon) is probably a bell. OpenClipArt has examples of both bells and balloons as notification icons.

Override shell theme disable (greyed out)

Hello,

Have the latest version of activities configurator installed from extensions.gnome.org (Commit: fa3a78b).

When I initially installed the extension I was able to turn on "Override Shell Theme" but now it is disabled and greyed out so I am unable to enable it.

System:

Linux 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u1 (2018-08-03) x86_64 GNU/Linux
GNOME Shell 3.22.3
Kali-X Shell Theme.

I have another machine that has the exact same OS, gnome shell version and shell theme and I am able to enable the override setting. So not sure what the issue is. I have tried to reinstall the extension but this has not fixed the issue.

Is there anything you could recommend I try?

Your response is greatly appreciated. Thanks.

[Activities Configurator] Hot corner behavior when drag-n-dropping broken on Wayland

Hi!

I was testing stuff on Wayland (Fedora 26) and realized that the hot corner behavior which works when drag-n-dropping (even when hot corner is disabled) doesn't work under Wayland. It still works fine under X11.
As reminder this feature was added in commit c632edc and that's very useful because I really dislike the hot corner except when I drag-n-drop. :-)
Thanks!

Rename the language files in source tarball releases.

When installing an extension for a single user only, language files would normally appear in locale/ under the extension's directory under ~/.local/share/gnome-shell/extensions/. Most packaged GNOME Shell extensions in Fedora, however, install these translations to a global directory. So, in the installed RPM package, a .mo file would have a path like this:

/usr/share/locale/de/LC_MESSAGES/nls1729-extensions.mo`

The nls1729-extensions filename seems to be the same for both Activities Configurator and Do Not Disturb Button, so the two packages are going to conflict. I tried simply renaming the .mo files from my RPM spec, but then the extension configurator doesn't seem to get translated. So I believe I need you to rename the .mo files when you prepare your source releases.

3.34 Support

Any chance you could get this up and running for 3.34 please?

It installed fine and I see the smiley face at the top left, but if I try to open the settings within gnome tweaks I get this:

`TypeError: Me.metadata['shell-version'] is undefined

Stack trace:
_init@/home/reece/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:53:1
buildPrefsWidget@/home/reece/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:626:18
_showPrefs@resource:///org/gnome/shell/extensionPrefs/main.js:57:22
_extensionsLoaded@resource:///org/gnome/shell/extensionPrefs/main.js:319:13
_scanExtensions/<@resource:///org/gnome/shell/extensionPrefs/main.js:297:13
asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:132:13
main@resource:///org/gnome/shell/extensionPrefs/main.js:702:5
@

:1:43`

Enabling Panel Shadow Forces Panel Background Colour Change

Hi
With the new release, if I set any values for the Panel Shadow then it automatically applies the Panel Background colour from "Set Panel Background". This means it is impossible to use a theme's colour scheme while having a shadow enabled. Can you make "Set Panel Background" to have an on/off toggle to fix this?
Thank you

Do Not Disturb Button 31 overwrites some of its own files?

I package Do Not Disturb Button as an RPM for Fedora. I noticed after updating the package to DNDB version 31 (I was a little late getting the notification) that I was getting an error saying:

Extension "donotdisturb-button@nls1729" had error: Gio.IOErrorEnum: Error opening file “/usr/share/gnome-shell/extensions/donotdisturb-button@nls1729/correctClass.js”: Permission denied

and

Apr 18 13:14:02 mars.localdomain gnome-shell[3326]: Extension "donotdisturb-button@nls1729" had error: Gio.IOErrorEnum: Error opening file “/usr/share/gnome-shell/extensions/donotdisturb-button@nls1729/force.js”: Permission denied

Like most nonbinary software from an RPM package, the DNDB files are in a directory under /usr/share/ and are owned by root, but all the files had universal read permissions, so I thought this was weird. Just to see what would happen, I added execution permissions, then write permissions, and restarted GNOME Shell each time. After adding write permissions, the files changed, but DNDB started to function normally again. Then I removed the write and execution bits, but the left the files with their newly altered contents, and DNDB seems to continue to work.

...Is there a reason you decided to write the extension this way? RPM packages aren't normally supposed to change themselves as you use them, and I don't think I could get away with changing the file permissions in the finished package to read/write for everyone. If I use the self-edited version of those files in my RPM instead of the version downloaded from the GNOME Shell Extensions website, how reliably could I expect them to work on other people's computers?

Activities Configurator intermittently disables the "Hide panel rounded corners" option

BEHAVIOR
Though I can't specifically pinpoint when, occasionally the Activities Configurator will disable the "Hide panel rounded corners" option... yet when I go into the configuration settings window, the button is switched to on, not off.

EXPECTED BEHAVIOR
When the "Hide panel rounded corners" button is switched to yes, the rounded corners won't intermittently re-appear and have to be re-enabled and then re-disabled.

ISSUE DISCOVERED USING
Ubuntu (GNOME) 17.04 x64
Gnome 3.24.1 desktop environment
Linux kernel 4.10.0-21-generic

Disable hot corner functionality quits working after reboot

I installed this great plugin recently mostly to disable the activities hot corner. It works great, but after a reboot the hot corner starts activating again. Note: I've seen this on two different up-to-date Arch Linux machines.

If I go and toggle the slider twice, then it starts working again, but I thought I'd file a bug.

Here is a bit more info which may be helpful:
I'm running Gnome classic shell, and the only other non-default settings I have are to disable the activities button and I hide the icon.

Enable hot corner only for drag'n drop

Hello,

I don't like the GNOME hot corner, so I disable it with the Activities Configurator extension.
Yet there is one case where I like it: when I drag'n drop a file to another application (which is not necessarily visible on my screen), for instance to drop a subtitle file over a running video player.

For this, I can drag my file over the hot corner which would display activities and workspaces, and still dragging, I can go over the right window.

Would it be possible to have an additional configuration when I disable the hot corner, saying basically "except for drag'n drop"?
This would be awesome. Thanks.

Activities Configurator: rpmlint complains about empty file.

Still working here and there on my first RPM packages for Fedora.

This is maybe a little pedantic... But stylesheet.css is empty. Did you mean to delete it, or are you just keeping it around in case you want to add styles later? Just curious.

Extension reloader does not load manually installed extension from disk.

What I did:

  1. Change an extension code on disk (manually installed - I git checkout-ed a different commit to hunt down a bug).
  2. Reload the extension with GSER.

What I expected to happen:

Extension to now be running the newly checkout-ed commit.

What actually happened:

Extension still running the old commit.

Activities Configurator not working with Ubuntu 18.04 beta 2, Gnome 3.28

When I go into GNOME Tweaks and try to configure the Activities Configurator extension, a terminal opens up saying the following:
"There was an error loading the preferences dialog for Activities Configurator:"
Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
@/home/jesse/.local/share/gnome-shell/extensions/activities-config@nls1729/colors.js:1:7
@/home/jesse/.local/share/gnome-shell/extensions/activities-config@nls1729/prefs.js:15:7
_getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
@

:1:43

Bug discovered using:
Ubuntu 18.04 beta 2
Gnome 3.28 (gnome-session, X.org -- not the Ubuntu default gnome session)
Linux kernel 4.15.0-13-generic

Gnome 3.22 Activities Configurator breakage

Hi,
I've upgraded my gnome-shell to 3.22, and I've seen a breackage in Activities Configurator:
When I right-click on activities button, I can't manage my extensions anymore : a blank (unclosable) window appears...
Same from gnome-tweak-tool and click on settings button.
Thanks for those great extensions !

With Fedora 31 (more recent Gnome version), it interferes with application keyboard use

Here are two examples.
When active...
Using LibreOffice or Firefox, the following problems are

Control-S within LO is intercepted by Gnome, Control-S should perform a save of the document.

With Firefox and other, Control + Scroll wheel should change the main window presentation size (zoom/unzoom).

Disabling this extension reverts the functionality of the other applications.

gnome-shell 3.32.2 - using a lot of RAM after awhile

Hi, this extension is amazing!

But after I updated from Fedora 29 to 30 and also updated gnome-shell to version 3.32.2 I noticed a memory leak on it.

After talking to some people it was advised to turn the extensions off and so I did it. After investigating which extension was causing the trouble. Unfortunately, it was this one.

After 24 hours the gnome-shell was occupying 4.5gb of RAM and the memory leak goes on until the system stops responding.

Activities Configurator applies to login screen

The configurator applies on the login screen when the user shell theme isn't active. It overwrites the default gnome shell theme and replaces the panel background color and text. This happens when I suspend by closing my laptop lid and leave it like that, and it doesn't happen when I click the suspend button or simply lock the screen.

Is there any way to make it so it doesn't overwrite that or keep the original login panel style?

Listed address for the Free Software Foundation is out-of-date

This is a very minor issue. But one or a couple places in your repo, the copyright comment at the beginning of a code file mentions getting a copy of the the GPL by sending snail mail to the Free Software Foundation. The FSF address you provide is a little out-of-date, as they've moved from Temple Place to Franklin Street. The current address is here:

Free Software Foundation
51 Franklin Street, Fifth Floor
Boston, MA 02110-1335
USA

https://www.fsf.org/about/contact/

Or you could just direct them to the web version instead:

https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

donotdisturb-button: Disable notification sounds when busy

It would be great if the donotdisturb-button disabled notification sounds when in the busy mode. At present, toggling on the busy mode does hide the notification banner from appearing, but I can still hear the "Alert" sound from the GNOME sound theme (which I do want to hear when I am not in the busy mode).

Thanks for the exceedingly useful extension.

Does not work with Gnome 3.321

Sadly, Gnome is still an interface that is in constant development.
Your program works with Fedora29 but fails with Rawhide (the next gnome version)
Rawhide may be at 3.22 Gnome is ashamed to indicate the version anywhere in the Gnome Fedora interfaces.

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.